码迷,mamicode.com
首页 > 其他好文 > 详细

1011 A+B和C

时间:2018-08-21 18:21:45      阅读:127      评论:0      收藏:0      [点我收藏+]

标签:ref   ble   col   mes   style   set   std   href   ret   

题目链接:https://pintia.cn/problem-sets/994805260223102976/problems/994805312417021952

题解:

 1 #include<iostream>
 2 using namespace std;
 3 
 4 int main(){
 5     long long T,a,b,c;
 6     cin>>T;
 7     for(int i=0;i<T;i++){
 8         cin>>a>>b>>c;
 9         if(a+b<=c) cout<<"Case #"<<i+1<<": false"<<endl;
10         else cout<<"Case #"<<i+1<<": true"<<endl;
11     }
12     return 0;
13 }

 

1011 A+B和C

标签:ref   ble   col   mes   style   set   std   href   ret   

原文地址:https://www.cnblogs.com/Gzu_zb/p/9512918.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!