CodeForce
CodeForce
Cyber苦行者
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #642 (Div. 3)(A B C D)
这一场完成了前三题加了分, 收获在于熟悉了优先队列以及运算符的重载(在D题中有所体现) A. Most Unstable Array(数学) #include<bits/stdc++.h> #define FAST ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0); #define ms(a,b) memset(a,b,sizeof(a)) #define rush() int T;cin>>T;while(T--)原创 2020-05-19 12:55:52 · 245 阅读 · 0 评论 -
Codeforces Round #640 (Div. 4)
CF出div.4了,我的青春结束了.(题解详见注释) A. Sum of Round Numbers #include<bits/stdc++.h>//这一题的题意就是把一个数拆成除第一位以外都是0的数,个位数保留 //比如 115 = 100 + 10 + 5, 4142 = 1000 + 100 + 40 + 2 using namespace std; int main(){ int a[100];//存放每一个拆出来的数字 int t,num,s; cin>>原创 2020-05-10 21:00:58 · 317 阅读 · 0 评论 -
Codeforces Round #620 (Div. 2)(A B C D)
A. Two Rabbits #include<bits/stdc++.h>//数学 using namespace std; int main(){ int t,time; int x,y,a,b; cin>>t; while(t--){ cin>>x>>y>>a>>b; if((y - x) % (a ...原创 2020-02-17 19:25:31 · 156 阅读 · 0 评论