Result [link]

WA

Code [DL]

int main() {
	string s=Stdio.stdin.gets();
	int i=strlen(s);
	int res=0;
	int j=i-1;
	while(j>=0){
	write("%d\n",s[j]);
    if(s[j]==49){
	res= res+pow(2,i-j-1);
	}
	j = j-1;
	}
    return 0;
}

stdin

0110111010001000101000110111011001101111111110000000001000101110000011110101010111000101000101011110

stdout

48
49
49
49
49
48
49
48
49
48
48
48
49
48
49
48
48
48
49
49
49
48
49
48
49
48
49
48
49
49
49
49
48
48
48
48
48
49
49
49
48
49
48
48
48
49
48
48
48
48
48
48
48
48
48
49
49
49
49
49
49
49
49
49
48
49
49
48
48
49
49
48
49
49
49
48
49
49
48
48
48
49
48
49
48
48
48
49
48
48
48
49
48
49
49
49
48
49
49
48

stderr

strace