Search found 1 match

by EMON
Mon Mar 26, 2018 8:21 pm
Forum: Volume 119 (11900-11999)
Topic: 11942 - Lumberjack Sequencing
Replies: 1
Views: 1688

Re: 11942 - Lumberjack Sequencing

#include<iostream> using namespace std; int main() { int N,i,j; cin>>N; cout<<"Lumberjacks:"<<endl; if(N>0 && N<20) { for(i=1;i<=N;i++) { int arr[10]; for(j=0;j<10;j++) { cin>>arr[j]; } if((arr[0]<arr[1] && arr[1]<arr[2] && arr[2]<arr[3] && arr[3]<arr[4] && arr[4]<arr[5])||(arr[0]>arr[1] && arr[1]>a...

Go to advanced search