problem
The number of testcases are not given. BOJ 10951
solution
- Detect EOF and break when found.
while(!cin.eof()){ ... }
- Use cin as conditional.
while(cin >> ...){ ... }
PREVIOUSdelete recursively
The number of testcases are not given. BOJ 10951
while(!cin.eof()){
...
}
while(cin >> ...){
...
}