摘要:
A 清楚姐姐的学术群 int main() { int n = read(), m = read(), a = read(), b = read(); for(int i = 1; i <= n; i++) people[i].push_back(0); for(int i = 1; i <= m; 阅读全文
摘要:
C 猪脑过载 思路: 我是把第一个位置放1,最后一个位置放1,中间放0的,其实也可以是第一个位置放2,其他位置放0。 代码: int main() { int T = read(); while(T--) { int n = read(); if(n == 1) { cout << 2 << end 阅读全文
摘要:
A - Make postcards signed main() { int T = read(); while(T--) { int a = read(), b = read(), n = read(); int cnt = 0; while(a % 2 == 0) { cnt++; a /= 2 阅读全文
摘要:
A 阿宁的柠檬 signed main() { int a = read(), b = read(), n = read(); LL mi = 1 * n; LL ma = a * n + b * n; cout << mi << ' ' << ma << endl; return 0; } B 阿 阅读全文
摘要:
H - The Tag Game 题目: Alice got tired of playing the tag game by the usual rules so she offered Bob a little modification to it. Now the game should be 阅读全文