Result

WA

Code [DL]

while a=gets()
b,i=a.to_i,1
while b>0
b-=i
i+=1
end
puts b==0 ? 0:1
end

stdin

11100100
10001000
00010101
10000000
00101101
11001001
11010010
01101001
10111111
01101101
10101011
10011001
00000110
00010110
00111100
10000111
01001110
00100010
00000011
00001111
11111101
00010101
10011101
00000001
01010111
10101010
01010100
00000101
00110111
00000000
11011110
00001010
10101001
11100111
11011011
10111110
00100100
00110111
01011110
10100000
00011100
01111000
01011111
10000001
01000010
10110001
01011011
10110100
01011001
11000010

stdout

1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
0
1
1
1
1
1
0
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1

stderr

strace