← Discussion
K-Han · 2014-03-09 18:52:48
What's the end of inputs ?? :-s
AMiR · 2014-03-10 08:52:39
There is just one test case. You should read the input till the end of file.
while (cin >> num) { ... }