上一页 1 2 3 4 5 6 7 8 9 ··· 22 下一页
摘要: #include#include#include#includeusing namespace std;int mat[200][200];int vis[200][200];int ans,n,m,rt;int op[4][2]={0,-1,0,1,1,0,-1,0};bool isok(int ... 阅读全文
posted @ 2015-07-20 11:04 sola94 阅读(107) 评论(0) 推荐(0)
摘要: 题意:有一个数列 seed[x+1]=(seed(x)+step)%mod 给出 step 和 mod 如果求出的是以 1。。。mod-1 为循环节的数列 则为 good choice 否则 则是 bad choice思路:1.用标记法 如果 形成循环节时 每个数都被标记到 则good choice... 阅读全文
posted @ 2015-07-18 10:43 sola94 阅读(121) 评论(0) 推荐(0)
摘要: #include#include#include#include#includeusing namespace std;int dp[30][30][30][30];int vis[30][30][30][30];int a[2][30],sum[2][30];int dfs(int i,int j... 阅读全文
posted @ 2015-07-11 23:38 sola94 阅读(97) 评论(0) 推荐(0)
摘要: #include#include#include#include#includeusing namespace std;int a[100+10];int dp[120][120];int sum[120];int vis[120][120];int dfs(int f,int t){ int ... 阅读全文
posted @ 2015-07-10 00:30 sola94 阅读(115) 评论(0) 推荐(0)
摘要: #include#include#include#include#include#include#includeusing namespace std;vector a[100000+100];map temp;int h[100000+100];int shoot[100000+100];int... 阅读全文
posted @ 2015-07-08 16:02 sola94 阅读(117) 评论(0) 推荐(0)
摘要: #include#include#include#includeusing namespace std;int ch[30000][30];int val[30000][30];char str[1000+10][20+10];int sz;int idx(char c) {return c-'a'... 阅读全文
posted @ 2015-07-03 01:01 sola94 阅读(101) 评论(0) 推荐(0)
摘要: #include#include#include#include#include#include //friend bool operator b.coun; } priority_queue Q;using namespace std;struct node{ int num; ... 阅读全文
posted @ 2015-07-02 01:43 sola94 阅读(183) 评论(0) 推荐(0)
摘要: #include#include#include#include#include#include#include#include#include#includeusing namespace std;int a[1000000+100];int main(){ int n; int i,... 阅读全文
posted @ 2015-07-02 01:42 sola94 阅读(124) 评论(0) 推荐(0)
摘要: 题意:思路:#include#include#include#include#include#include#include#include#includeusing namespace std;struct Work{ __int64 c,d;};Work work[100000+10];i... 阅读全文
posted @ 2015-06-10 05:03 sola94 阅读(151) 评论(0) 推荐(0)
摘要: 题意:思路:#include#include#include#include#includeusing namespace std;int a[200];int dp1[1000+10];int dp2[1000+10];int main(){ int t,n; int i,j,k; ... 阅读全文
posted @ 2015-06-10 05:02 sola94 阅读(177) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 22 下一页