v1sha1's blog

By v1sha1, history, 2 years ago, In English

http://codeforces.com/contest/118/problem/B

how can I remove the extra space at the end of each line in python?

I tried in two ways but both of them are producing the wrong result due to extra space at the end.

http://codeforces.com/contest/118/submission/41963079

http://codeforces.com/contest/118/submission/41929441

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it