合集-ATCoder
摘要:AtCoder Beginner Contest 322 推荐视频:AtCoder Beginner Contest 322 A 至 F 題讲解 by dreamoon A. First ABC 2 解题思路: 遍历寻找连续的\(ABC\). 时间复杂度:\(O(n)\). 代码: #include
阅读全文
摘要:UNIQUE VISION Programming Contest 2023 Autumn(AtCoder Beginner Contest 323) A. Weak Beats 解题思路: 按题意模拟即可。 代码: #include <bits/stdc++.h> using namespace
阅读全文
摘要:HHKB Programming Contest 2023(AtCoder Beginner Contest 327) A. ab 解题思路: 模拟即可。 代码: #include <bits/stdc++.h> using namespace std; using ll = long long;
阅读全文
摘要:Toyota Programming Contest 2023#7(AtCoder Beginner Contest 328) A. Not Too Hard 题意: 将给定的数列\(a\)中数值小于\(x\)的数累加。 解题思路: 模拟。 代码: #include<bits/stdc++.h> u
阅读全文
摘要:Daiwa Securities Co. Ltd. Programming Contest 2023(AtCoder Beginner Contest 331) A - Tomorrow 解题思路: 模拟。 代码: #include <bits/stdc++.h> using namespace s
阅读全文
摘要:AtCoder Beginner Contest 332 A - Online Shopping 代码: #include <bits/stdc++.h> using namespace std; typedef long long ll; const int N = 1e6 + 10; typed
阅读全文
摘要:Toyota Programming Contest 2023#8(AtCoder Beginner Contest 333) A - Three Threes 代码: #include <bits/stdc++.h> using namespace std; typedef long long l
阅读全文
摘要:UNIQUE VISION Programming Contest 2023 Christmas (AtCoder Beginner Contest 334) A - Christmas Present 代码: #include <bits/stdc++.h> using namespace std
阅读全文
摘要:AtCoder Beginner Contest 335 (Sponsored by Mynavi) A - 2023 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<l
阅读全文
摘要:AtCoder Beginner Contest 336 A - Long Loong 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<ll, ll>; #define
阅读全文
摘要:Toyota Programming Contest 2024#1(AtCoder Beginner Contest 337) A - Scoreboard 代码: #include <bits/stdc++.h> using namespace std; using ll = long long;
阅读全文
摘要:AtCoder Beginner Contest 338 A - Capitalized? 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<ll, ll>; #defin
阅读全文
摘要:Japan Registry Services (JPRS) Programming Contest 2024 (AtCoder Beginner Contest 339) A - TLD 代码: #include <bits/stdc++.h> using namespace std; using
阅读全文
摘要:KAJIMA CORPORATION CONTEST 2024(AtCoder Beginner Contest 340) A - Arithmetic Progression 代码: #include <bits/stdc++.h> using namespace std; using ll =
阅读全文
摘要:Toyota Programming Contest 2024#2(AtCoder Beginner Contest 341) A - Print 341 代码: #include <bits/stdc++.h> using namespace std; using ll = long long;
阅读全文
摘要:HUAWEI Programming Contest 2024(AtCoder Beginner Contest 342) A - Yay! 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using p
阅读全文
摘要:Toyota Programming Contest 2024#3(AtCoder Beginner Contest 344) A - Spoiler 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; us
阅读全文
摘要:ABC 345 F - Many Lamps 解题思路: 每次选取一条边,要么亮两个,要么灭两个,要么一灭一暗。亮的个数的奇偶性不变,所以不可能亮奇数个。 考虑每个连通块。如果是偶数个一定能全亮,奇数个则最少一个不亮。 对于两暗的,需要时通过操作点亮是一定的。 考虑一明一暗时是加入边的操作意味什么:
阅读全文