
Codeforces
coderyzh
这个作者很懒,什么都没留下…
展开
-
Codeforces 1157A Reachable Numbers
题目传送门 #include<iostream> using namespace std; int main() { int n,ans=0; cin>>n; if(n<10)//n小于10,即1,2,3,4,5,6,7,8,9 { cout<<9<<endl; return ...原创 2019-04-28 21:05:44 · 203 阅读 · 0 评论 -
Codeforces 1157E Minimum Array
题目传送门 multiset容器和set不同的就是不去重。代码易懂。 s.erase(a);其中a是地址,而不是对应的数据。 #include<bits/stdc++.h> //#include<set> using namespace std; int a[200010],b[200010]; multiset<int>s; int main() { ...原创 2019-04-29 11:22:50 · 200 阅读 · 0 评论 -
Codeforces 1157D N Problems During K Days
题目传送门 #include<iostream> #include<cmath> using namespace std; long long a[110000]; long long s(long long m) { return m*(m+1)/2; } int main() { int n,k; cin>>n>>...原创 2019-04-29 18:32:06 · 268 阅读 · 2 评论