Result

WA

Code [DL]

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

stdin

11111010
11001010
11001001
01111000
00101101
01010101
11011010
00000000
11000010
00000110
00100100
00001101
00000001
01011011
01000000
01101001
01111011
11010010
10101011
10011001
10001000
11000110
10101101
01010111
01001110
00011100
10111010
00110111
10011000
01111101
00010011
00110111
11111101
00001111
11100101
10000101
11100111
01000010
10001111
00010101
00000011
10111110
11110110
01101101
10101011
00100010
11101101
00001010
00101000
01001001

stdout

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

stderr

strace