PKU 3913 Gnome Sequencing
http://poj.org/problem?id=3913
3つの数字が与えられる。
それが昇順、又は降順に並んでいるかを判定する。
易。
main(){ int n; cin>>n; cout<<"Gnomes:"<<endl; while(n--){ int a,b,c; cin>>a>>b>>c; if(min(a,c)<=b && b<=max(a,c))cout<<"Ordered"<<endl; else cout<<"Unordered"<<endl; } }