年度归档: 2025 年

96 篇文章

thumbnail
AtCoder Beginner Contest 429
链接:https://atcoder.jp/contests/abc429 A - Too Many Requests 算法:     模拟。 思路:     无。 关键代码: void miyan() { int n, m; cin >> n >> m; for (i…
thumbnail
AtCoder Beginner Contest 398
链接:https://atcoder.jp/contests/abc398 A - Doors in the Center 算法:     模拟。 思路:     无。 关键代码: void miyan() { int n; cin >> n; if (n …
thumbnail
AtCoder Beginner Contest 399
链接:https://atcoder.jp/contests/abc399 A - Hamming Distance 算法:     模拟。 思路:     无。 关键代码: void miyan() { int n; string s, t; cin >> n >> …
thumbnail
AtCoder Beginner Contest 400
链接:https://atcoder.jp/contests/abc400 A - ABC400 Party 算法:     模拟。 思路:     无。 关键代码: void miyan() { int n; cin >> n; if (400 % n) cout &…
thumbnail
AtCoder Beginner Contest 428
链接:https://atcoder.jp/contests/abc428 A - Grandma's Footsteps 算法:     模拟。 思路:     无。 关键代码: void miyan() { int s, a, b, x; cin >> s >> a…
thumbnail
Codeforces Round 1058 (Div. 2)
链接:https://codeforces.com/contest/2160 A. MEX Partition 算法:     贪心。 思路:     无。 关键代码: void miyan() { int n; cin >> n; set<int> s; for (int i = 0; i < …
thumbnail
Codeforces Round 1057 (Div. 2)
链接:https://codeforces.com/contest/2153 A. Circle of Apple Trees 算法:     贪心。 思路:     不同元素的个数。 关键代码: void miyan() { int n; cin >> n; vector<int> a(n); for (auto &x : a) c…
thumbnail
AtCoder Beginner Contest 427
链接:https://atcoder.jp/contests/abc427 A - ABC -> AC 算法:     模拟。 思路:     无。 关键代码: void miyan() { string s; cin >> s; for (int i = 0; i &…
thumbnail
AtCoder Beginner Contest 426
链接:https://atcoder.jp/contests/abc426 A - OS Versions 算法:     模拟。 思路:     无。 关键代码: void miyan() { string s, t; cin >> s >> t; map<st…
thumbnail
二进制与位运算
二进制 二进制([latex]Binary System[/latex])是一种以 [latex]2[/latex] 为基数的数制,只使用两个数字符号:[latex]0[/latex] 和 [latex]1[/latex], 每个数字称为一个比特([latex]Bit[/latex],[latex]Binary digit[/latex]…