摘要:
"传送门" C Candles 双指针维护一个区间搞一下就行。 Code cpp include using namespace std; typedef long long ll; const int N = 1e5 + 5; int a[N], b[N]; int n; int c[N]; in 阅读全文
摘要:
"传送门" A. 2048 Game 乱搞即可。 Code B. Knights 直接按奇偶分类其实就行,但我写了个$dfs$... Code C. Perfect Team 直接输出就行,但我写了个二分... Code D. Make The Fence Great Again 题意: 给出$n$ 阅读全文
摘要:
"传送门" A. Paint the Numbers 签到。 Code cpp include using namespace std; typedef long long ll; const int N = 105; int n; int a[N], b[N]; char s[N]; int ma 阅读全文
摘要:
"传送门" A. Yellow Cards 细心点即可。 Code cpp include define fi first define se second define MP make_pair using namespace std; typedef long long ll; typedef 阅读全文
摘要:
"传送门" A. Who is better? 扩展中国剩余定理+斐波那契博弈,没啥好说的,关于斐波那契博弈,详见: "传送门" Code cpp include typedef long long ll; typedef unsigned long long ull; typedef double 阅读全文