Why did you ignore the spaces in the first column?
All you have to ignore are the spaces redundant at the end of the line.
This line may help you:
Code: Select all
freopen("out.txt","w",stdout);
Code: Select all
freopen("out.txt","w",stdout);
Code: Select all
Code deleted.
Code: Select all
Code deleted after AC, thanks for Jan's help!!!
Code: Select all
Code removed after accepted with mf's help, thanks!!!
Code: Select all
Code removed after AC.