解题思路:很简单的一道题,不知道为什么通过率这么低
注意事项:
参考代码:
#include <deque>
#include <algorithm>
#include <iostream>
#include <cstdlib>
#include <iterator>
#include <iomanip>
#include <numeric>
#include <sstream>
#include <string>
#include <cmath>
#include <string.h>
#define V 1001
using namespace std;
int main()
{
deque<string> q;
int a,b,c;
while(cin>>a>>b>>c)
{
if(a+b>c&&a+c>b&&b+c>a)
{
q.push_back("YES");
}
else
{
q.push_back("NO");
}
}
copy(q.begin(),q.end(),ostream_iterator<string>(cout,"\n"));
return 0;
}
0.0分
0 人评分
震宇大神的杀毒软件 (C++代码)浏览:1118 |
简单的a+b (C语言代码)浏览:760 |
字符串输入输出函数 (Java代码)浏览:1440 |
A+B for Input-Output Practice (VII) (C++代码)浏览:615 |
字符串问题 (C语言代码)浏览:1522 |
printf基础练习2 (C语言代码)浏览:943 |
拆分位数 (C语言代码)浏览:1328 |
WU-C语言程序设计教程(第三版)课后习题11.11 (C++代码)(想学链表的可以看看)浏览:1358 |
求圆的面积 (C语言代码)浏览:1670 |
The 3n + 1 problem (C语言代码)浏览:505 |