# your code goes hereT=int(input())for c in range(T): a,b,c=map(int,input().split()) if a<b and b<c: print("STAIR") elif a<b and b>c: print("PEAK") else: print("NONE")
7 1 2 3 3 2 1 1 5 3 3 4 1 0 0 0 4 1 7 4 5 7
STAIR NONE PEAK PEAK NONE NONE STAIR
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!