NOJ1088Gnome Sequencing——水题
来源:互联网 发布:向日葵虚拟局域网软件 编辑:程序博客网 时间:2024/05/18 15:31
Gnome Sequencing
总提交:236 测试通过:154
描述
In the book All Creatures of Mythology, gnomes are kind, bearded creatures, while goblins tend to be bossy and simple-minded. The goblins like to harass the gnomes by making them line up in groups of three, ordered by the length of their beards. The gnomes, being of different physical heights, vary their arrangements to confuse the goblins. Therefore, the goblins must actually measure the beards in centimeters to see if everyone is lined up in order.
Your task is to write a program to assist the goblins in determining whether or not the gnomes are lined up properly, either from shortest to longest beard or from longest to shortest.
输入
The input starts with line containing a single integer N, 0 < N < 30, which is the number of groups to process. Following this are N lines, each containing three distinct positive integers less than 100.
输出
There is a title line, then one line per set of beard lengths. See the sample output for capitalization and punctuation.
样例输入
3
40 62 77
88 62 77
91 33 18
样例输出
Gnomes:
Ordered
Unordered
Ordered
题目来源
ACM Mid-Central Regional 2009
#include<stdio.h>int main(){int n;scanf("%d",&n);printf("Gnomes:\n");while(n--){int x, y, z;scanf("%d%d%d",&x,&y,&z);printf("%s\n",((x>=y&&y>=z)||(x<=y&&y<=z))?"Ordered":"Unordered");}return 0;}
- NOJ1088Gnome Sequencing——水题
- Bisulfite Sequencing
- Sequencing Problem
- DNA Sequencing
- 11942 - Lumberjack Sequencing
- UVa 11942 - Lumberjack Sequencing
- poj3913 Gnome Sequencing
- multi-format of sequencing
- uva 7529 - DNA Sequencing
- UVA 7529 - DNA Sequencing
- Java Persistence/Identity and Sequencing
- What comes after genome sequencing?
- 北大ACM poj3913 Gnome Sequencing
- UVa760 - DNA Sequencing(后缀数组)
- 南邮 OJ 1088 Gnome Sequencing
- POJ 3913 Gnome Sequencing G++
- Next Generation Biology Through Next Generation Sequencing
- Bioinformatics: Sequencing Antibiotics (week 3-4)
- discuz 7.2 faq.php sql注入的一点研究
- java里的复制
- http Content-type及Spring的@RequestBody注解
- 2014-Summer-PK4(Team)
- HWOJ 完全数计算
- NOJ1088Gnome Sequencing——水题
- 火風鼎(1967)
- 【HDU】4291 A Short problem 矩阵快速幂
- BufferedReader BufferedWriter HttpURLConnection
- 解决Maven管理的项目下"Missing artifact xxx bundle"问题
- NOJ1089Duplicate Removal——水题
- 模型驱动测试-多参数测试用例设计敏捷化的一些实践方法
- JVM之二——对象内存的分配和回收
- 澤火革