Saksham_Sahgal's blog

By Saksham_Sahgal, history, 3 years ago, In English

Can anyone help me figure out what is wrong in my Code , the poblem is pretty straight forward and i Implemented it using PBDS , but i am getting WA in 5 added Testcases . Here is my submission Link — Submission

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

| Write comment?
»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Your multiset type is int, change it to long long and submit ;)

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

Because the typename in the PBDS should be long long instead of int.