随笔分类 - 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
阅读全文
摘要: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(
阅读全文
摘要: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
阅读全文
摘要:A - Hamming Distance A题就是统计两个字符串不同的字符的数量,直接暴力就行。 #include<bits/stdc++.h> using namespace std; using ll = long long; void solve() { int n;cin >> n; str
阅读全文
摘要:A - Doors in the Center 当n为奇数时,输出一个'='; 当n为偶数时,输出两个'='; 在等号前后各输出(n-1)/2个'-'; #include<bits/stdc++.h> using namespace std; using ll = long long; void s
阅读全文

浙公网安备 33010602011771号