File size: 317 Bytes
7f48c90 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #include<stdio.h>
#include<iostream.h>
const int Maxi = 200;
struct Seq{
string str;
long long int val;
void Print{
printf("%s = %lld\n",str.c_str(),val);
}
};
bool operator < (const Seq &l, const Seq &r){
return l.val<r.val;
}
int n,val[Maxi];
char op[Maxi];
Seq dpmax[Maxi] [Maxi], dpmin[Maxi] [Maxi];
|