摘要:
#include#include#includeusing namespace std;char str[100];char resultstr[100];int visit[100];void dfs( int cur , int len){ if( cur == len ) { ... 阅读全文
摘要:
#include#includeusing namespace std;int a[100][100];int l,r,t,b;int n,m;void solve(){ l = 0 , r = m-1 , t = 0 , b = n - 1; int i,j; while( t ... 阅读全文
摘要:
#includeusing namespace std;int a[100][100];int key;int n , m;int DFS( int i , int j , int value , int &ivalue , int &jvalue ){ if( i >= n || j >= ... 阅读全文
摘要:
Problem DescriptionGiven a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7)... 阅读全文
摘要:
#include#include#includeusing namespace std;const int MAXN = 4000 * 100 + 10;const int sigma = 26;const int MAXNn = 300010;const int mod = 20071027;ch... 阅读全文