摘要:
char readchar() { char tmp = 0; char ch; bool read = false; while (ch = getchar()) { if (ch == '-' || ch == '+') { read = true; tmp = ch; } else if (r 阅读全文
摘要:
#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++){ ... 阅读全文
摘要:
http://blog.csdn.net/l2580258/article/details/51319387 void cin_read_nosync() { freopen("data.txt","r",stdin); std::ios::sync_with_stdio(false); for ( 阅读全文
只有注册用户登录后才能阅读该文。 阅读全文
摘要:
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 阅读全文
摘要:
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); } 阅读全文
摘要:
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 阅读全文