Language: C

#include<stdio.h>
  
void spin_w(int x[]){
  int sai1[6],i;
  
  for(i=0;i<6;i++){
    sai1[i]=x[i];
  }
  
  sai1[0]=x[2];
  sai1[2]=x[5];
  sai1[3]=x[0];
  sai1[5]=x[3];
  
  for(i=0;i<6;i++){
    x[i]=sai1[i];
  }
  
}
  
void spin_side(int x[]){
int sai1[6],i;
  
for(i=0;i<6;i++){
  sai1[i]=x[i];
 }
  
sai1[1]=x[2];
sai1[2]=x[4];
sai1[3]=x[1];
sai1[4]=x[3];
  
for(i=0;i<6;i++){
  x[i]=sai1[i];
 }
}
  
  
void spin_s(int x[]){
    int sai1[6],i;
      
  for(i=0;i<6;i++){
    sai1[i]=x[i];
  }
  sai1[0]=x[4];
  sai1[1]=x[0];
  sai1[4]=x[5];
    sai1[5]=x[1];
      
  for(i=0;i<6;i++){
    x[i]=sai1[i];
  }
}
  
int conf(int x[],int y[]){
      
    int i,count=0,count2=0,a=0,sai1[6],sai2[6];
      
    for(i=0;i<6;i++){
        sai1[i]=x[i];
        sai2[i]=y[i];
    }
      
    for(i=0;i<6;i++){
    if(sai1[i]==sai2[i]){
      count++;
    }
    }
      
  if(count!=6){
        for(i=0;i<=3;i++){
            spin_w(sai1);
            count2++;
        if(sai1[0]==sai2[0])break;
        }
        if(count2==4){
            for(i=0;i<=3;i++){
            spin_s(sai1);
        if(sai1[0]==sai2[0])break;
            }
        }
              
    for(i=0;i<=3;i++){
      spin_side(sai1);
      if(sai1[1]==sai2[1] && sai1[2]==sai2[2] && sai1[3]==sai2[3] && sai1[4]==sai2[4])break;
        }
  }
  
  count=0;
  
  
  for(i=0;i<6;i++){
    if(sai1[i]==sai2[i]){
      count++;
        }
    }
    if(count==6){
        return 1;
    }else{
        return 0;
    }
}
  
int main(){
  int i,j,k,l,sai1[6],sai2[6],sai_c[105][6],n,a=0;
      
    scanf("%d",&n);
    for(i=0;i<n;i++){
        for(j=0;j<6;j++){
            scanf("%d",&sai_c[i][j]);
        }
    }
    for(i=0;i<n;i++){
        for(j=0;j<6;j++){
            sai1[j]=sai_c[i][j];
        }
        for(k=i+1;k<n;k++){
            for(l=0;l<6;l++){
                sai2[l]=sai_c[k][l];
            }
                if(conf(sai1,sai2)==1){
            a++;
            }
        }
    }
  if(a==0){
      printf("Yes\n");
  }else{
    printf("No\n");
  }
  return 0;
}

Compile Error Logs:
You are not authorized to see the message.

???????????????
Judge: 20/20	C	CPU: 00.00 sec	Memory: 580 KB	Length: 2025 B	2016-06-30 18:39	2016-06-30 18:39
???????????±?????????????????????
Case #	Verdict	CPU Time	Memory	In	Out	Case Name
Case #1:	: Accepted	00.00 sec	580 KB	38 B	3 B	00_sample_00.in
Case #2:	: Accepted	00.00 sec	580 KB	38 B	4 B	00_sample_01.in
Case #3:	: Accepted	00.00 sec	580 KB	50 B	4 B	01_yes_00.in
Case #4:	: Accepted	00.00 sec	580 KB	62 B	4 B	01_yes_01.in
Case #5:	: Accepted	00.00 sec	580 KB	38 B	4 B	01_yes_02.in
Case #6:	: Accepted	00.00 sec	580 KB	26 B	4 B	01_yes_03.in
Case #7:	: Accepted	00.00 sec	580 KB	74 B	3 B	02_no_00.in
Case #8:	: Accepted	00.00 sec	580 KB	26 B	3 B	02_no_01.in
Case #9:	: Accepted	00.00 sec	580 KB	26 B	4 B	03_corner_00.in
Case #10:	: Accepted	00.00 sec	580 KB	26 B	4 B	03_corner_01.in
Case #11:	: Accepted	00.00 sec	580 KB	26 B	4 B	03_corner_02.in
Case #12:	: Accepted	00.00 sec	580 KB	26 B	4 B	03_corner_03.in
Case #13:	: Accepted	00.00 sec	580 KB	26 B	4 B	03_corner_04.in
Case #14:	: Accepted	00.00 sec	580 KB	26 B	4 B	03_corner_05.in
Case #15:	: Accepted	00.00 sec	580 KB	363 B	4 B	04_all_diff_00.in
Case #16:	: Accepted	00.00 sec	580 KB	1204 B	4 B	04_all_diff_01.in
Case #17:	: Accepted	00.00 sec	580 KB	1204 B	3 B	05_almost_00.in
Case #18:	: Accepted	00.00 sec	580 KB	1204 B	3 B	05_almost_01.in
Case #19:	: Accepted	00.00 sec	580 KB	1204 B	3 B	05_almost_02.in
Case #20:	: Accepted	00.00 sec	580 KB	1204 B	3 B	05_almost_03.in

< prev |	1	/	20	| next >	 		 : Accepted        00.00 sec        580 KB
 
Judge Input #1 ( in1.txt | 38 B)		Judge Output #1 ( out1.txt | 3 B)
3
1 2 3 4 5 6
6 2 4 3 5 1
6 5 4 3 2 1
No
Comments
 
 ??\????????§??????
 
Categories
 
 
Free Tags
 
 

Compiler output:
main.c:134:1: error: unknown type name 'Compile'
  134 | Compile Error Logs:
      | ^~~~~~~
main.c:134:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Logs'
  134 | Compile Error Logs:
      |               ^~~~
main.c:139:12: error: stray '\302' in program
  139 | ???????????<U+00B1>?????????????????????
      |            ^~~~~~~~
main.c:140:6: error: stray '#' in program
  140 | Case #  Verdict CPU Time        Memory  In      Out     Case Name
      |      ^
main.c:141:6: error: stray '#' in program
  141 | Case #1:        : Accepted      00.00 sec       580 KB  38 B    3 B     00_sample_00.in
      |      ^
main.c:141:73: error: invalid suffix "_sample_00.in" on integer constant
  141 | Case #1:        : Accepted      00.00 sec       580 KB  38 B    3 B     00_sample_00.in
      |                                                                         ^~~~~~~~~~~~~~~
main.c:142:6: error: stray '#' in program
  142 | Case #2:        : Accepted      00.00 sec       580 KB  38 B    4 B     00_sample_01.in
      |      ^
main.c:142:73: error: invalid suffix "_sample_01.in" on integer constant
  142 | Case #2:        : Accepted      00.00 sec       580 KB  38 B    4 B     00_sample_01.in
      |                                                                         ^~~~~~~~~~~~~~~
main.c:143:6: error: stray '#' in program
  143 | Case #3:        : Accepted      00.00 sec       580 KB  50 B    4 B     01_yes_00.in
      |      ^
main.c:143:73: error: invalid suffix "_yes_00.in" on integer constant
  143 | Case #3:        : Accepted      00.00 sec       580 KB  50 B    4 B     01_yes_00.in
      |                                                                         ^~~~~~~~~~~~
main.c:144:6: error: stray '#' in program
  144 | Case #4:        : Accepted      00.00 sec       580 KB  62 B    4 B     01_yes_01.in
      |      ^
main.c:144:73: error: invalid suffix "_yes_01.in" on integer constant
  144 | Case #4:        : Accepted      00.00 sec       580 KB  62 B    4 B     01_yes_01.in
      |                                                                         ^~~~~~~~~~~~
main.c:145:6: error: stray '#' in program
  145 | Case #5:        : Accepted      00.00 sec       580 KB  38 B    4 B     01_yes_02.in
      |      ^
main.c:145:73: error: invalid suffix "_yes_02.in" on integer constant
  145 | Case #5:        : Accepted      00.00 sec       580 KB  38 B    4 B     01_yes_02.in
      |                                                                         ^~~~~~~~~~~~
main.c:146:6: error: stray '#' in program
  146 | Case #6:        : Accepted      00.00 sec       580 KB  26 B    4 B     01_yes_03.in
      |      ^
main.c:146:73: error: invalid suffix "_yes_03.in" on integer constant
  146 | Case #6:        : Accepted      00.00 sec       580 KB  26 B    4 B     01_yes_03.in
      |                                                                         ^~~~~~~~~~~~
main.c:147:6: error: stray '#' in program
  147 | Case #7:        : Accepted      00.00 sec       580 KB  74 B    3 B     02_no_00.in
      |      ^
main.c:147:73: error: invalid suffix "_no_00.in" on integer constant
  147 | Case #7:        : Accepted      00.00 sec       580 KB  74 B    3 B     02_no_00.in
      |                                                                         ^~~~~~~~~~~
main.c:148:6: error: stray '#' in program
  148 | Case #8:        : Accepted      00.00 sec       580 KB  26 B    3 B     02_no_01.in
      |      ^
main.c:148:73: error: invalid suffix "_no_01.in" on integer constant
  148 | Case #8:        : Accepted      00.00 sec       580 KB  26 B    3 B     02_no_01.in
      |                                                                         ^~~~~~~~~~~
main.c:149:6: error: stray '#' in program
  149 | Case #9:        : Accepted      00.00 sec       580 KB  26 B    4 B     03_corner_00.in
      |      ^
main.c:149:73: error: invalid suffix "_corner_00.in" on integer constant
  149 | Case #9:        : Accepted      00.00 sec       580 KB  26 B    4 B     03_corner_00.in
      |                                                                         ^~~~~~~~~~~~~~~
main.c:150:6: error: stray '#' in program
  150 | Case #10:       : Accepted      00.00 sec       580 KB  26 B    4 B     03_corner_01.in
      |      ^
main.c:150:73: error: invalid suffix "_corner_01.in" on integer constant
  150 | Case #10:       : Accepted      00.00 sec       580 KB  26 B    4 B     03_corner_01.in
      |                                                                         ^~~~~~~~~~~~~~~
main.c:151:6: error: stray '#' in program
  151 | Case #11:       : Accepted      00.00 sec       580 KB  26 B    4 B     03_corner_02.in
      |      ^
main.c:151:73: error: invalid suffix "_corner_02.in" on integer constant
  151 | Case #11:       : Accepted      00.00 sec       580 KB  26 B    4 B     03_corner_02.in
      |                                                                         ^~~~~~~~~~~~~~~
main.c:152:6: error: stray '#' in program
  152 | Case #12:       : Accepted      00.00 sec       580 KB  26 B    4 B     03_corner_03.in
      |      ^
main.c:152:73: error: invalid suffix "_corner_03.in" on integer constant
  152 | Case #12:       : Accepted      00.00 sec       580 KB  26 B    4 B     03_corner_03.in
      |                                                                         ^~~~~~~~~~~~~~~
main.c:153:6: error: stray '#' in program
  153 | Case #13:       : Accepted      00.00 sec       580 KB  26 B    4 B     03_corner_04.in
      |      ^
main.c:153:73: error: invalid suffix "_corner_04.in" on integer constant
  153 | Case #13:       : Accepted      00.00 sec       580 KB  26 B    4 B     03_corner_04.in
      |                                                                         ^~~~~~~~~~~~~~~
main.c:154:6: error: stray '#' in program
  154 | Case #14:       : Accepted      00.00 sec       580 KB  26 B    4 B     03_corner_05.in
      |      ^
main.c:154:73: error: invalid suffix "_corner_05.in" on integer constant
  154 | Case #14:       : Accepted      00.00 sec       580 KB  26 B    4 B     03_corner_05.in
      |                                                                         ^~~~~~~~~~~~~~~
main.c:155:6: error: stray '#' in program
  155 | Case #15:       : Accepted      00.00 sec       580 KB  363 B   4 B     04_all_diff_00.in
      |      ^
main.c:155:73: error: invalid suffix "_all_diff_00.in" on integer constant
  155 | Case #15:       : Accepted      00.00 sec       580 KB  363 B   4 B     04_all_diff_00.in
      |                                                                         ^~~~~~~~~~~~~~~~~
main.c:156:6: error: stray '#' in program
  156 | Case #16:       : Accepted      00.00 sec       580 KB  1204 B  4 B     04_all_diff_01.in
      |      ^
main.c:156:73: error: invalid suffix "_all_diff_01.in" on integer constant
  156 | Case #16:       : Accepted      00.00 sec       580 KB  1204 B  4 B     04_all_diff_01.in
      |                                                                         ^~~~~~~~~~~~~~~~~
main.c:157:6: error: stray '#' in program
  157 | Case #17:       : Accepted      00.00 sec       580 KB  1204 B  3 B     05_almost_00.in
      |      ^
main.c:157:73: error: invalid suffix "_almost_00.in" on integer constant
  157 | Case #17:       : Accepted      00.00 sec       580 KB  1204 B  3 B     05_almost_00.in
      |                                                                         ^~~~~~~~~~~~~~~
main.c:158:6: error: stray '#' in program
  158 | Case #18:       : Accepted      00.00 sec       580 KB  1204 B  3 B     05_almost_01.in
      |      ^
main.c:158:73: error: invalid suffix "_almost_01.in" on integer constant
  158 | Case #18:       : Accepted      00.00 sec       580 KB  1204 B  3 B     05_almost_01.in
      |                                                                         ^~~~~~~~~~~~~~~
main.c:159:6: error: stray '#' in program
  159 | Case #19:       : Accepted      00.00 sec       580 KB  1204 B  3 B     05_almost_02.in
      |      ^
main.c:159:73: error: invalid suffix "_almost_02.in" on integer constant
  159 | Case #19:       : Accepted      00.00 sec       580 KB  1204 B  3 B     05_almost_02.in
      |                                                                         ^~~~~~~~~~~~~~~
main.c:160:6: error: stray '#' in program
  160 | Case #20:       : Accepted      00.00 sec       580 KB  1204 B  3 B     05_almost_03.in
      |      ^
main.c:160:73: error: invalid suffix "_almost_03.in" on integer constant
  160 | Case #20:       : Accepted      00.00 sec       580 KB  1204 B  3 B     05_almost_03.in
      |                                                                         ^~~~~~~~~~~~~~~
main.c:164:13: error: stray '#' in program
  164 | Judge Input #1 ( in1.txt | 38 B)                Judge Output #1 ( out1.txt | 3 B)
      |             ^
main.c:164:62: error: stray '#' in program
  164 | Judge Input #1 ( in1.txt | 38 B)                Judge Output #1 ( out1.txt | 3 B)
      |                                                              ^
main.c:172:4: error: stray '\' in program
  172 |  ??\????????§??????
      |    ^
main.c:172:13: error: stray '\302' in program
  172 |  ??\????????<U+00A7>??????
      |             ^~~~~~~~