随笔分类 -  Atcoder

本人打Atcoder的记录
摘要:A - Is it rated? 直接判断就行。 #include<bits/stdc++.h> using namespace std; using ll = long long; void solve() { int r,x;cin >> r >> x; if(x==1) { if(r>=160 阅读全文
posted @ 2025-05-11 15:47 林克还是克林 阅读(50) 评论(0) 推荐(0)
摘要:A - CBC 遍历一下,看有多少个大写字母就行。 #include<bits/stdc++.h> using namespace std; using ll = long long; void solve() { string S;cin >> S; for(int i = 0;i<S.size( 阅读全文
posted @ 2025-04-23 20:27 林克还是克林 阅读(49) 评论(0) 推荐(0)
摘要:A - Status Code 根据题意模拟即可 #include<bits/stdc++.h> using namespace std; using ll = long long; void solve() { int s;cin >> s; if(s>=200&&s<=299)cout <<"S 阅读全文
posted @ 2025-04-15 21:20 林克还是克林 阅读(7) 评论(0) 推荐(0)
摘要:A - Hamming Distance A题就是统计两个字符串不同的字符的数量,直接暴力就行。 #include<bits/stdc++.h> using namespace std; using ll = long long; void solve() { int n;cin >> n; str 阅读全文
posted @ 2025-04-01 18:55 林克还是克林 阅读(28) 评论(0) 推荐(0)
摘要:A - Doors in the Center 当n为奇数时,输出一个'='; 当n为偶数时,输出两个'='; 在等号前后各输出(n-1)/2个'-'; #include<bits/stdc++.h> using namespace std; using ll = long long; void s 阅读全文
posted @ 2025-03-23 14:37 林克还是克林 阅读(47) 评论(0) 推荐(0)