Блог пользователя Starting_From_Scratch

Автор Starting_From_Scratch, история, 4 года назад, По-английски

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

  • Проголосовать: нравится
  • +38
  • Проголосовать: не нравится

»
4 года назад, скрыть # |
 
Проголосовать: нравится +38 Проголосовать: не нравится

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

»
4 года назад, скрыть # |
 
Проголосовать: нравится +16 Проголосовать: не нравится

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.