Antique_Coder's blog

By Antique_Coder, history, 3 weeks ago, In English

Problem: 1977B - Binary Colouring

Code: 262844612

Language: Python 3.8.*

  • Vote: I like it
  • +2
  • Vote: I do not like it

»
3 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by Antique_Coder (previous revision, new revision, compare).

»
3 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Python is trash, use C++.

»
3 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Use PyPy instead of Python3

»
3 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Use pypy-3, it works just fine

»
3 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

just change def binaryColouring(num:int)->list[int]: to def binaryColouring(num):

hope this helped