Starting_From_Scratch's blog

By Starting_From_Scratch, history, 16 months ago, In English

Why my indentation of code is wrong on codeforces. I use 4 tab size. It works on sublime text perfectly but codeforces ruins it. It looks so bad. How can I fix this? Submission id for comparison : 188250005

| Write comment?
»
16 months ago, # |
  Vote: I like it +38 Vote: I do not like it

It's because you use tabs and on Codeforces by default tabs will have 8 spaces. Switch to using spaces for indentation and you won't have this problem

»
16 months ago, # |
  Vote: I like it +16 Vote: I do not like it

When submitting code (in the "submit code" section where you can copy paste code) there is a "tab size" option. Setting it to 4 should fix it, but I'm not completely sure.