Bytelandian Coins

Can someone help to understand why this solution is wrong? Solution: 53715926 | CodeChef
I am practically copying the video solution at this point but still getting WA

The following was mentioned as the Input Format.

The input will contain several test cases (not more than 10). Each testcase is a single line with a number n, 0 <= n <= 1 000 000 000. It is the number written on your coin.

And still you’re doing this.

int t; cin >> t;

Make sure you’re reading all the input.

1 Like