随笔分类 - AtCoder
摘要:传送门 A - World Cup 判断一下模 #include <iostream> #include <cstdio> #include <algorithm> #include <string> using namespace std; int main() { int x; cin >> x
阅读全文
摘要:传送门 A - Intersection 区间标记一下 #include <iostream> #include <vector> using namespace std; const int maxn = 110; int main() { vector<int>vis(110, 0); for(
阅读全文
摘要:传送门 A - Growth Record 看题直接算,就出生之后 X 岁以下的身高增速为 D,给出 N 岁时身高为 T,求 M 岁时身高是多少 #include <iostream> #include <cstdio> #include <algorithm> #include <vector>
阅读全文
摘要:传送门 这场打的有一种我又行了的感觉 A - When? 向下取整 + 取余 #include <iostream> #include <cstdio> #include <algorithm> #include <vector> #include <string> #include <queue>
阅读全文
摘要:传送门 vp 了一场之前的 ABC,不知道是水平下降还是真的难,就很多要想很久,寄了 A - A to Z String 2 向下取整考虑一下是在哪个组就好 #include <iostream> using namespace std; int main() { int n, x; cin >>
阅读全文
摘要:传送门 A - You should output ARC, though this is ABC. 直接输出 #include <iostream> #include <cstdio> #include <algorithm> #include <vector> #include <string>
阅读全文
摘要:传送门 看到我们集训队的榜单挺惨淡的,就来 vp 了一把,感觉 D 如果卡了 E 也应该能做 F 看着还挺有趣的,找时间补题 更新:在看了大佬的题解之后,把 F 补了 A - Last Two Digits 直接对 100 取模 #include <iostream> #include <cstdi
阅读全文
摘要:传送门 A - Median? 找中间数 #include <iostream> #include <cstdio> #include <algorithm> #include <vector> #include <string> #include <queue> #include <functio
阅读全文
摘要:传送门 A - ASCII code 输出 #include <iostream> #include <cstdio> #include <algorithm> #include <vector> #include <string> #include <queue> #include <functi
阅读全文
摘要:传送门 闲来无事,突然想 vp 一场之前忙的来不及做的 A - Adjacent Squares 这题没想到居然还会卡了一下 给出一个图,给出当前位置,看看有多少个格子相邻 行和列分别判断就好 #include <iostream> using namespace std; int main() {
阅读全文