Result

AC

Duration

633ms

Code [DL]

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

stdin

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

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

stderr

/tmp/code.c:1:1: warning: data definition has no type or storage class
 s[];main(i){for(;i<99;)gets(s),atoi(s)%8%3<2?puts("1"):i++;}
 ^
/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<99;)gets(s),atoi(s)%8%3<2?puts("1"):i++;}
     ^~~~
/tmp/code.c: In function 'main':
/tmp/code.c:1:5: warning: type of 'i' defaults to 'int' [-Wimplicit-int]
/tmp/code.c:1:24: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
 s[];main(i){for(;i<99;)gets(s),atoi(s)%8%3<2?puts("1"):i++;}
                        ^~~~
/tmp/code.c:1:32: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
 s[];main(i){for(;i<99;)gets(s),atoi(s)%8%3<2?puts("1"):i++;}
                                ^~~~
/tmp/code.c:1:46: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
 s[];main(i){for(;i<99;)gets(s),atoi(s)%8%3<2?puts("1"):i++;}
                                              ^~~~
/tmp/code.c: At top level:
/tmp/code.c:1:1: warning: array 's' assumed to have one element
 s[];main(i){for(;i<99;)gets(s),atoi(s)%8%3<2?puts("1"):i++;}
 ^

strace