摘要: 比赛链接:https://atcoder.jp/contests/abc222/tasks A - Four Digits 题意 给出一个整数 \(n\) ,以宽度为 4 补前导 0 的格式输出。 \(0 \le n \le 9999\) 题解 即 printf("%04d", n) 。 代码 #i 阅读全文
posted @ 2021-10-13 18:50 Kanoon 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 比赛链接:https://atcoder.jp/contests/abc221/tasks A - Seismic magnitude scales 题意 给出两个正整数 \(a, b\) ,计算 \(32^{a - b}\) 。 \(3 \le b \le a \le 9\) 题解 \(32^{a 阅读全文
posted @ 2021-10-08 17:00 Kanoon 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 比赛链接:https://atcoder.jp/contests/abc220/tasks A - Find Multiple 题意 判断 \([a, b]\) 中是否有 \(c\) 的倍数。 \(1 \le a \le b \le 1000\) \(1 \le c \le 1000\) 题解 模拟 阅读全文
posted @ 2021-09-27 18:40 Kanoon 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 比赛链接:https://atcoder.jp/contests/abc219/tasks A - AtCoder Quiz 2 题意 给出一个分数 \(x\) ,共分为四级: \(0 \le x \lt 40\) \(40 \le x \lt 70\) \(70 \le x \lt 90\) \( 阅读全文
posted @ 2021-09-19 17:30 Kanoon 阅读(287) 评论(0) 推荐(1) 编辑
摘要: 比赛链接:https://atcoder.jp/contests/abc218/tasks A - Weather Forecast 题意 判断一个字符串的第 \(n\) 个字符是否为 o 。 题解 模拟。 代码 #include <bits/stdc++.h> using namespace st 阅读全文
posted @ 2021-09-13 16:15 Kanoon 阅读(182) 评论(2) 推荐(0) 编辑
摘要: 比赛链接:https://atcoder.jp/contests/abc217/tasks A - Lexicographic Order 题意 给出两个字符串 \(s,t\) ,若 \(s\) 字典序小于 \(t\) 输出 Yes ,否则输出 No 。 题解 模拟。 代码 #include <bi 阅读全文
posted @ 2021-09-06 18:30 Kanoon 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 比赛链接:https://atcoder.jp/contests/abc216/tasks A - Signed Difficulty 题意 给出一个 x.y 形式的实数,按以下格式转换: \(0 \le y \le 2\) ,输出 x- \(3 \le y \le 6\) ,输出 x \(7 \l 阅读全文
posted @ 2021-08-30 23:30 Kanoon 阅读(170) 评论(2) 推荐(2) 编辑
摘要: 比赛链接:https://atcoder.jp/contests/abc215/tasks A - Your First Judge 题意 如果一个字符串是 Hello,World! ,输出 AC ,否则输出 WA 。 题解 模拟。 代码 #include <bits/stdc++.h> using 阅读全文
posted @ 2021-08-22 01:15 Kanoon 阅读(152) 评论(2) 推荐(0) 编辑
摘要: 比赛链接:https://atcoder.jp/contests/abc213/tasks A - Bitwise Exclusive Or 题意 给出两个值在 \([0, 255]\) 间的数 \(a,b\) ,找到一个非负数 \(c\) 使得 \(a \oplus c = b\) 。 题解 由异 阅读全文
posted @ 2021-08-08 22:00 Kanoon 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 比赛链接:https://codeforces.com/contest/1549 A. Gregor and Cryptography 题解 构造。 代码 #include <bits/stdc++.h> using namespace std; int main() { ios::sync_wit 阅读全文
posted @ 2021-08-03 18:20 Kanoon 阅读(58) 评论(0) 推荐(0) 编辑