pages:
  • 1
K-Han SAYS

What's the end of inputs ?? :-s

AMiR SAYS

There is just one test case. You should read the input till the end of file.

while (cin >> num) { ... }