PAT-BL-1011
2016-11-04 20:33
232 查看
2016-11-04记录,做题:2016-11-03
易错点:结果的取值范围为long而不是int
-Fin-
易错点:结果的取值范围为long而不是int
#include<stdio.h> int main() { int t, i; long a, b, c; scanf("%d", &t); for(i = 0;i < t;i++) { scanf("%ld%ld%ld", &a, &b, &c); if(a-c+b > 0) printf("Case #%ld: true\n", i+1); else printf("Case #%ld: false\n", i+1); } return 0; }
-Fin-
相关文章推荐
- PAT-A-1011. World Cup Betting (20)
- 浙大PAT 1011题 1011. World Cup Betting
- pat1011-1020
- PAT 1011. A+B和C
- PAT 1011-1020 题解
- PAT乙级训练题--1011. A+B和C (15)
- PAT甲级真题及训练集(7)--1011. World Cup Betting (20)
- Pat(Basic Level)Practice--1011(A+B和C)
- pat-bl-1012
- PAT-B 1011(c++)
- PAT basic 1011 : A+B 和 C
- pat:1011<advanced> <World Cup>
- PAT (Basic) 1011~1015
- PAT - 1011. A+B和C (15)
- pat-bl-1034
- pat 甲级 1011
- pat-bl-1045
- pat-bl-1054
- pat-bl-1057
- pat乙级1011. A+B和C (15)