08 2024 档案
AtCoder Beginner Contest 053
摘要:A - ABC/ARC #include <bits/stdc++.h> using namespace std; using i64 = long long; int main() { ios::sync_with_stdio(false), cin.tie(nullptr); int x; ci
AtCoder Beginner Contest 052
摘要:A - Two Rectangles #include <bits/stdc++.h> using namespace std; using i64 = long long; int main() { ios::sync_with_stdio(false), cin.tie(nullptr); in
AtCoder Beginner Contest 051
摘要:A - Haiku 直接模拟。 #include <bits/stdc++.h> using namespace std; using i64 = long long; int main() { ios::sync_with_stdio(false), cin.tie(nullptr); strin
AtCoder Beginner Contest 049
摘要:A - UOIAUAI #include <bits/stdc++.h> using namespace std; using i64 = long long; int main() { ios::sync_with_stdio(false), cin.tie(nullptr); char c; c
AtCoder Beginner Contest 050
摘要:基本上独立做出来了。 A - Addition and Subtraction Easy 模拟。 #include <bits/stdc++.h> using namespace std; using i64 = long long; int main() { ios::sync_with_stdi
AtCoder Beginner Contest 048
摘要:A - AtCoder *** Contest 先输出首字母,然后遍历字符串,遇到空格就输出后面的第一个字符。 #include <bits/stdc++.h> using namespace std; using i64 = long long; int main() { ios::sync_wi
AtCoder Beginner Contest 047
摘要:A - Fighting over Candies 简单排序。 #include <bits/stdc++.h> using namespace std; using i64 = long long; int main() { ios::sync_with_stdio(false), cin.tie
AtCoder Beginner Contest 046
摘要:A - AtCoDeer and Paint Cans 可由 的性质轻松解决。 #include <bits/stdc++.h> using namespace std; using i64 = long long; int main() { ios::sync_with_s
AtCoder Beginner Contest 045
摘要:A - Trapezoids #include <bits/stdc++.h> using namespace std; using i64 = long long; int main() { ios::sync_with_stdio(false), cin.tie(nullptr); int a,
AtCoder Beginner Contest 044
摘要:A - Tak and Hotels (ABC Edit) #include <bits/stdc++.h> using namespace std; using i64 = long long; int main() { ios::sync_with_stdio(false), cin.tie(n
找出与数组相加的整数Ⅰ&Ⅱ
摘要:3131.找出与数组相加的整数Ⅰ 数组长度相等,元素一一对应。题目又保证答案一定存在,只需将两个数组从小到大排序,元素之差一定相等。所以只需求一组元素之差即可。不妨取两个数组的最小值之差。因此无需排序。 class Solution { public: int addedInteger(vector