摘要:
一、赛题 ~~水题不解释~~ 加强/推广至一般情况 (某些知识的)模板/经典题 1.NOIP提高组 年份 Day A B C Day A B C 2016 D1 玩具谜题 天天爱跑步 换教室 D2 组合数问题 蚯蚓 愤怒的小鸟 2015 D1 神奇的幻方 信息传递 斗地主 D2 跳石头 字串 运输计 阅读全文
摘要:
cpp include include using std::cin; struct Moment { double value; short weight; bool operator n w u v t1 t2; cnt = 0; add_time(t1, 0); add_time(t2, 0) 阅读全文
摘要:
```BFS``` ```正解就是乱搞系列``` ```cpp #include #include char G[50][50]; bool mk[50][50][10001]; struct QueueNode { int x, y, cur, dist; QueueNode (int x = 0, int y = 0, int cur = 0, int dist = 0): ... 阅读全文
摘要:
cpp include include include int main() { int p, a, b, c, d, n; scanf("%d%d%d%d%d%d", &p, &a, &b, &c, &d, &n); double maxans = p (sin(a + b) + cos(c + 阅读全文
摘要:
cpp include include using std::sort; define kN 1000000 struct vv { int a, b; vv(int a = 0, int b = 0): a(a), b(b) {} }p[kN], q[kN]; bool cmp1(vv xx, v 阅读全文
摘要:
cpp include using std::cin; using std::cout; using std::endl; struct treenode { int val; treenode lc, rc; treenode(int val = 0): val(val), lc(NULL), r 阅读全文
摘要:
cpp include include include int main() { int d, k; std::cin d k; int r[257], p[257]; for (int i = 1; i r[i] p[i]; static long long f[257][257]; memset 阅读全文
摘要:
``` include include using std::cin; using std::cout; int main() { int n, m; cin n m; bool G[26][26]; while (n ) { char a, b; cin a b; G[a 'a'][b 'a'] 阅读全文