Result

AC

Duration

930ms

Code [DL]

s[];main(i){for(;i<101;)gets(s),atoi(s)%8%3>1?i++:puts("1");}

stdin

10
12
12
02
21
21
10
21
10
01
20
10
21
02
20
02
02
01
02
20
20
10
20
12
20
10
01
10
02
02
20
12
02
20
10
02
20
12
20
01
10
02
02
01
12
12
02
20
20
02
20
02
21
21
20
10
10
21
12
12
10
12
10
01
20
10
12
21
12
12
10
20
02
02
01
12
01
12
12
10
01
10
20
20
20
20
21
12
01
21
10
10
02
21
01
20
02
12
10
02
10
02
02
02
02
10
02
12
01
20
01
21
01
12
12
10
20
20
20
10
10
10
12
01
01
12
12
01
10
02
12
21
12
21
12
12
01
12
10
12
20
01
01
12
21
20
01
20
10
12
02
21
02
01
02
02
01
01
12
01
20
10
02
02
10
20
21
20
12
12
12
10
20
01
02
02
20
12
01
01
01
12
12
01
02
02
02
12
20
12
02
01
21
12
21
20
01
20
10
10
20
21
20
20
01
20
10
01
20
10
01
01
02
12
01
20
21
20
12
20
20
01
20
01
12
20
01
02
01
20
01
12
01
02
12
21
20
10
20
02
01
02
20
01
12
12
20
02
01
21
12
21
10
12
01
01
12
20
21
12
02
21
01
01
10
10
12
20
02
21
21
10
21
02
12
10
01
10
02
01
10
10
01
02
10
12
12
21
02
01
01
21
21
10
21
01
21
02
12
12

stdout

1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1

stderr

/tmp/code.c:1:1: warning: data definition has no type or storage class
 s[];main(i){for(;i<101;)gets(s),atoi(s)%8%3>1?i++:puts("1");}
 ^
/tmp/code.c:1:1: warning: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
/tmp/code.c:1:5: warning: return type defaults to 'int' [-Wimplicit-int]
 s[];main(i){for(;i<101;)gets(s),atoi(s)%8%3>1?i++:puts("1");}
     ^~~~
/tmp/code.c: In function 'main':
/tmp/code.c:1:5: warning: type of 'i' defaults to 'int' [-Wimplicit-int]
/tmp/code.c:1:25: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
 s[];main(i){for(;i<101;)gets(s),atoi(s)%8%3>1?i++:puts("1");}
                         ^~~~
/tmp/code.c:1:33: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
 s[];main(i){for(;i<101;)gets(s),atoi(s)%8%3>1?i++:puts("1");}
                                 ^~~~
/tmp/code.c:1:51: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
 s[];main(i){for(;i<101;)gets(s),atoi(s)%8%3>1?i++:puts("1");}
                                                   ^~~~
/tmp/code.c: At top level:
/tmp/code.c:1:1: warning: array 's' assumed to have one element
 s[];main(i){for(;i<101;)gets(s),atoi(s)%8%3>1?i++:puts("1");}
 ^

strace