chenzhigang00's blog

By chenzhigang00, history, 16 months ago, In English

Hello! It's a very intersting contest.

The reason might be as follow: a = list(map(int, input().split()))

We need to modify it into a = input().split()

  • Vote: I like it
  • -33
  • Vote: I do not like it

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

That's not the issue. The issue is you're using Counter, which is basically a hashmap. This has a worst case complexity of O(n) per operation.