摘要:
这场挺难orz A tag 有二分emm,但我没二分 把严格大于转化为大于等于,然后求个临界点,特判一下边界即可。 #include<bits/stdc++.h> using namespace std; int main(){ int T; cin>>T; while(T--){ int a, b 阅读全文
摘要:
这次的题目挺简单的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 阅读全文
摘要:
题目是今天中午我在车站写的,纪念一下~ 前三题很水就不说了。 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 阅读全文
摘要:
传送门: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 阅读全文
摘要:
传送门: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 阅读全文
摘要:
传送门: 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 阅读全文