Codeforces Rating Gym-101028A
来源:互联网 发布:淘宝客服工作目标 编辑:程序博客网 时间:2024/05/20 21:45
Codeforces Rating Gym-101028A
标签:水题
题目链接
/* 题意:排名初值为1500,经过N次变化,判断变化后的值是否等于R*/#include <stdio.h>int main(){ int T; scanf("%d", &T); while(T--) { int N, R; int change; int initial = 1500; scanf("%d %d", &N, &R); for(int i = 0; i < N; i++) { scanf("%d", &change); initial += change; } if(initial == R && initial > 0) printf("Correct\n"); //initial > 0, 排名不能为负数 else printf("Bug\n"); } return 0;}
阅读全文
0 0
- Codeforces Rating Gym-101028A
- Codeforces GYM 100738C Rating Shuffle
- codeforces gym 100645A
- CodeForces Gym 100803A
- codeforces Gym 101102A
- Codeforces Gym 100372A
- 【Codeforces Gym 100187A】
- Codeforces Gym 100340A Cookies
- codeforces gym 100827A Runes
- Codeforces GYM 100340A Cookies
- Codeforces gym 101343 A 数论
- Codeforces gym 101350A dp
- Codeforces gym 101102 A dp
- Codeforces Gym 100889 A. A Beautiful Array
- CodeForces Gym 100989A LCS (A)
- Codeforces Gym 101158 A. Rearranging a Sequence
- Codeforces Gym 100345A BibTeX 模拟
- codeforces Gym 100187 A. Potion of Immortality
- Linux的GCC编译器
- 在编程过程中遇到的各种小问题
- Python处理json字符串转化为字典
- 51nod 1450
- TensorFlow技术101
- Codeforces Rating Gym-101028A
- Android实战——Tinker的集成和使用
- 手把手教你用matlab生成STM32官方IIR滤波器的系数
- 为什么有抽象类还要接口
- 24.富文本编辑器Kindeditor的使用
- OpenSSL 开启 TLS1.3
- 51nod 1448
- unity 在UI中 点击画布 返回鼠标所在画布的位置
- 关于自卑