UVa 11936 - The Lazy Lumberjacks
来源:互联网 发布:plsql跨数据库复制表 编辑:程序博客网 时间:2024/06/05 19:14
题目:判断给定三条边是否能构成三角形。
分析:计算几何、简单题。利用两边之和大于第三边判断即可。
#include <iostream>#include <cstdlib>#include <cstdio> using namespace std; int main() { int n,a,b,c; while ( cin >> n ) while ( n -- ) { cin >> a >> b >> c; if ( a+b > c && a+c > b && b+c > a ) cout << "OK" << endl; else cout << "Wrong!!" << endl; } return 0; }
- UVa 11936 - The Lazy Lumberjacks
- UVA 1620 Lazy Susan
- POJ2970 The Lazy Programmer
- 【ACM】The lazy programmer
- USACO2014MarchGold The Lazy Cow
- POJ-2970-The lazy programmer
- jzoj 3811 The Lazy Cow
- UVa 12464 - Professor Lazy, Ph.D.
- uva 1620 Lazy Susan 树状数组
- KitKat - The Lazy/Poor Man's Rootkit
- the Algorithm Complexity of Lazy Evaluation
- KitKat - The Lazy/Poor Man's Rootkit
- POJ 2970 The lazy programmer 优先队列
- SPOJ 417 The lazy programmer(贪心)
- BZOJ 3476: [Usaco2014 Mar]The Lazy Cow
- The Lazy Cow(前缀和)
- Poj 2970 The lazy programmer(贪心)
- lazy
- C指针
- 重庆大学女生“神简历”12天内就成功就业
- ADF 常用的网站地址
- procstat - displays linux proc stat (/proc/pid/stat) in human-readable format
- Man Page 说明
- UVa 11936 - The Lazy Lumberjacks
- 解决MySql数据库显示中文乱码的问题
- c/c++中内存划分
- android 反编译
- ViewPager+Fragment获取联系人列表
- input子系统五 多点上报协议
- 关于REST中做简单验证的思考
- mysql常用的日期加减函数与实例教程
- Microsoft SQL Server 混合云博客系列