上一页 1 ··· 33 34 35 36 37
摘要: char readchar() { char tmp = 0; char ch; bool read = false; while (ch = getchar()) { if (ch == '-' || ch == '+') { read = true; tmp = ch; } else if (r 阅读全文
posted @ 2017-06-15 12:47 Aragaki 阅读(146) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std; typedef long long LL; char s[108]; vector num[108]; void dfs(int u, int k) { int d = num[u].size(), v; for(int i = 0; i < d; i++){ ... 阅读全文
posted @ 2017-06-13 22:07 Aragaki 阅读(117) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/l2580258/article/details/51319387 void cin_read_nosync() { freopen("data.txt","r",stdin); std::ios::sync_with_stdio(false); for ( 阅读全文
posted @ 2017-06-08 16:49 Aragaki 阅读(104) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-06-05 14:56 Aragaki 阅读(3) 评论(0) 推荐(0) 编辑
摘要: High school student Vasya got a string of length n as a birthday present. This string consists of letters 'a' and 'b' only. Vasya denotesbeauty of the 阅读全文
posted @ 2017-06-01 19:42 Aragaki 阅读(203) 评论(0) 推荐(0) 编辑
摘要: int L, R = 1, ans = 0; for(L = 1; L <= n; L = R + 1) { for(R = L; R + 1 <= n && B[L] == B[R + 1]; R++); ans = max(ans, R - L + 1); } 阅读全文
posted @ 2017-06-01 19:11 Aragaki 阅读(160) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/easonliu/p/4419459.html 输入 第1行:1个整数N。表示棋盘长度。1≤N≤100,000,000 输出 第1行:1个整数,表示覆盖方案数 MOD 19999997 输入 第1行:1个整数N。表示棋盘长度。1≤N≤100,000,00 阅读全文
posted @ 2017-05-31 22:53 Aragaki 阅读(145) 评论(0) 推荐(0) 编辑
上一页 1 ··· 33 34 35 36 37