Result

WA

Code [DL]

loop{p(gets.to_s.to_i(2)*8+1)**0.5%2==1?1:0}

stdin

01001001
01110101
00010010
01001110
10111111
10011001
00011100
01000010
11111101
11111101
10111110
00001010
00001111
11010010
00000110
01000000
01010011
10111011
00000111
01100110
01011011
01111000
10000101
00100100
00110111
11110100
00111000
11100111
10011000
00000001
10111001
01001111
01010110
00010101
01000010
10011010
00000011
01001101
10101101
00110100
00000000
00111011
01101001
01011110
10001000
10100100
10101011
10101110
01000111
00101101

stdout

585
937
145
625
1529
1225
225
529
2025
2025
1521
81
121
1681
49
513
665
1497
57
817
729
961
1065
289
441
1953
449
1849
1217
9
1481
633
689
169
529
1233
25
617
1385
417
1
473
841
753
1089
1313
1369
1393
569
361

stderr

Invalid Int32:  (ArgumentError)
0x459117: *CallStack::unwind:Array(Pointer(Void)) at ??
0x46cdfb: to_i32 at /opt/crystal/src/string.cr 418:5
0x46d587: to_i at /opt/crystal/src/string.cr 319:5
0x44750d: __crystal_main at /volume/CODE 1:8
0x4569a9: main at /opt/crystal/src/main.cr 12:15
0x7fcc32e06830: __libc_start_main at ??
0x446d99: _start at ??
0x0: ??? at ??

strace