Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- long long n,i,a,b,c,d,e,f,g,h,k,j;
- while(scanf("%lld",&n)==1)
- {
- printf("Lumberjacks:\n");
- for(i=1;i<=n;i++)
- {
- scanf("%lld%lld%lld%lld%lld%lld%lld%lld%lld%lld",&a,&b,&c,&d,&e,&f,&g,&h,&k,&j);
- if(a>b&&b>c&&c>d&&d>e&&e>f&&f>g&&g>h&&h>k&&k>j)
- printf("Ordered\n");
- else if(a<b&&b<c&&c<d&&d<e&&e<f&&f<g&&g<h&&h<k&&k<j)
- printf("Ordered\n");
- else
- printf("Unordered\n");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement