随笔分类 -  AtCoder Beginner Contest

摘要:A #include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; if(s[2]==s[3] && s[4]==s[5]) puts("Yes"); else puts("No"); return 0; } B 阅读全文
posted @ 2021-06-30 18:40 HinanawiTenshi 阅读(53) 评论(0) 推荐(0) 编辑
摘要:这次的题目挺简单的awa A #include<bits/stdc++.h> using namespace std; int main(){ int a, b; cin>>a>>b; cout<<a*(a-1)/2+b*(b-1)/2; return 0; } B #include<bits/st 阅读全文
posted @ 2021-06-29 19:54 HinanawiTenshi 阅读(36) 评论(0) 推荐(0) 编辑
摘要:传送门:https://atcoder.jp/contests/abc158 A #include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; bool ok1=false, ok2=false; for(aut 阅读全文
posted @ 2021-06-28 20:12 HinanawiTenshi 阅读(38) 评论(0) 推荐(0) 编辑
摘要:题目是今天中午我在车站写的,纪念一下~ 前三题很水就不说了。 A #include<bits/stdc++.h> using namespace std; int main(){ int c, r; cin>>c>>r; r= c>=10? r: (10-c)*100+r; cout<<r; ret 阅读全文
posted @ 2021-06-23 20:25 HinanawiTenshi 阅读(51) 评论(0) 推荐(1) 编辑
摘要:传送门:https://atcoder.jp/contests/abc154/tasks A #include<bits/stdc++.h> using namespace std; int main(){ string a, b; cin>>a>>b; int x, y; cin>>x>>y; s 阅读全文
posted @ 2021-06-20 21:58 HinanawiTenshi 阅读(70) 评论(0) 推荐(0) 编辑
摘要:传送门:https://atcoder.jp/contests/abc153/tasks A 向上取整 #include<bits/stdc++.h> using namespace std; int main(){ int a, b; cin>>a>>b; cout<<(a+b-1)/b; ret 阅读全文
posted @ 2021-06-18 11:14 HinanawiTenshi 阅读(53) 评论(0) 推荐(0) 编辑
摘要:传送门: A int main(){ int n, m; cin>>n>>m; if(n>m) puts("No"); else puts("Yes"); return 0; } B int main(){ int a, b; cin>>a>>b; if(a>b) swap(a, b); int a 阅读全文
posted @ 2021-06-17 20:18 HinanawiTenshi 阅读(131) 评论(0) 推荐(0) 编辑
摘要:竟然顺利地AK了,爽到( 传送门:https://atcoder.jp/contests/abc151 A 语法题 #include<bits/stdc++.h> using namespace std; int main(){ char ch; cin>>ch; cout<<(char)(ch+1 阅读全文
posted @ 2021-06-15 17:41 HinanawiTenshi 阅读(142) 评论(0) 推荐(0) 编辑
摘要:A 抽屉原理 #include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; if(a<=8 && b<=8) puts("Yay!"); else puts(":("); return 0; } B 特判 n 阅读全文
posted @ 2021-03-29 20:05 HinanawiTenshi 阅读(81) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示