zoukankan      html  css  js  c++  java
  • 1011. A+B和C

     1 /*
     2  * Main.c
     3  * 1011. A+B和C
     4  *  Created on: 2014年8月30日
     5  *      Author: Boomkeeper
     6  *********测试通过*******
     7  */
     8 
     9 #include <stdio.h>
    10 
    11 void compare(long a,long b,long c){
    12     if(a+b>c)
    13         printf("true
    ");
    14     else
    15         printf("false
    ");
    16 }
    17 
    18 int main(void){
    19 
    20     int t;//题目中的t
    21     int i;
    22     long a,b,c;
    23 
    24     scanf("%d",&t);
    25     getchar();
    26 
    27     for(i=0;i<t;i++){
    28         scanf("%ld %ld %ld",&a,&b,&c);
    29         getchar();
    30         printf("Case #%i: ",i+1);
    31         compare(a,b,c);
    32     }
    33 
    34     return 0;
    35 }

    题目链接:

    http://pat.zju.edu.cn/contests/pat-b-practise/1011

    .

  • 相关阅读:
    11.10
    11.9
    11.8 总结
    11.7
    11.6
    日报10.6
    日报10.5
    每周总结-3
    日报10.4
    日报10.2
  • 原文地址:https://www.cnblogs.com/boomkeeper/p/1011b.html
Copyright © 2011-2022 走看看