Code: Select all
1
4 3
1 1 2
1 2 1
2 1 2
1 2 3
I think it should be
Code: Select all
1 1
4 3
Am I correct?
Moderator: Board moderators
Code: Select all
1
4 3
1 1 2
1 2 1
2 1 2
1 2 3
Code: Select all
1 1
4 3
Code: Select all
printf("1 %d\n%d %d\n\n" ,start ,row ,end);
Code: Select all
printf("1 %d\n%d %d\n" ,start ,row ,end);
if(set--)
printf("\n");
My A.C code generates the following output:Phocasia wrote:What should be print for this test case?Code: Select all
1 4 3 1 1 2 1 2 1 2 1 2 1 2 3
I think it should bebecause it follow the rule 1,1,2,1,2,3.Code: Select all
1 1 4 3
Am I correct?
Code: Select all
1 1
4 1
Code: Select all
1,
1, 2,
1,2,...,k
1,2,...k+1
Code: Select all
6 6
1 1 2 1 2 3
2 1 4 3 2 1
3 4 5 1 2 3
3 2 1 6 5 4
4 5 6 7 1 2
9 9 9 9 9 3