![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Codeforces
yangdelu855
算法工程师
展开
-
水题。。。832A
A. Sasha and Sticks #include #include using namespace std; int main() { long long n,a,b; while(cin>>a>>b) { if(b!=1) { if((a/b)%2==1) puts("YES"); else原创 2017-07-27 20:09:19 · 237 阅读 · 0 评论 -
codeforces A. Key races
点这里 水题 吃了没文化的亏 翻译了才明白过来题意 #include #include #include #include #include using namespace std; int main() { double s,v1,v2,t1,t2; while(~scanf("%lf%lf%lf%lf%lf",&s,&v1,&v2,&t1,&t2))原创 2017-08-01 19:35:01 · 200 阅读 · 0 评论 -
codeforces 834-A. The Useless Toy
点这里 没看见空格。。一直找错。。 水题 #include #include using namespace std; char tt1[5]="v"; char tt2[5]="v>^<"; char tt3[5]; int main() { while(gets(tt3)!=NULL) { int d,f1=0,f2=0; scanf(原创 2017-08-08 20:07:51 · 239 阅读 · 0 评论 -
codeforces B. The number on the board
点这里 一开始题意理解错了。。。 就是要求使一个数k的每一位数的总和小于n #include #include #include #include using namespace std; char x[100005]; int t[100005]; bool cmp(int a,int b) { return a>b; } int main() { int n;原创 2017-08-02 11:51:37 · 229 阅读 · 0 评论 -
水题。。。810A
A. Straight «A» #include #include #include using namespace std; int main() { double a[120]; double k,n; while(~scanf("%lf%lf",&k,&n)) { double t=0,ave; memset(a,0原创 2017-07-27 20:12:12 · 173 阅读 · 0 评论 -
Codeforces Round #469 (Div. 2)
寒假回来简直废柴一只。。。两道水题 告诉记几别瞎想!!!A. Left-handers, Right-handers and Ambidexters#include <iostream> using namespace std; int main() { int x,y,z; while(cin>>x>>y>>z) { ...原创 2018-03-12 20:03:26 · 148 阅读 · 0 评论