06 2024 档案
摘要:// Program written by Liu Zhaozhou ~~~ #include <bits/stdc++.h> #define lowbit(x) (x & -x) using namespace std; inline char gc(void) { static char buf
阅读全文
摘要:// Program written by Liu Zhaozhou ~~~ #include <bits/stdc++.h> #define lowbit(x) (x & -x) using namespace std; inline char gc(void) { static char buf
阅读全文
摘要:首先,题面简短,是道思维好题。我们仔细想想,可以先推出几个简单但正确的性质。 如果当前最强蛇吃了最弱蛇后,不是最弱,那么一定可以吃。(简要证明:因为吃后不是最弱,所以如果原先次强蛇选择吃,那么他会成为比原先最强蛇消弱后更弱的蛇。因为每一条蛇都会选择最优策略,都不想被吃,那么如果原先次强蛇选择吃,就能
阅读全文