Please, try EDU on Codeforces! New educational section with videos, subtitles, texts, and problems. ×

Puru299792458's blog

By Puru299792458, history, 5 weeks ago, In English,

I wrote my solution in golang, getting time limit exceeded in test case 7 where n is 100000.

82246466

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

»
5 weeks ago, # |
  Vote: I like it +8 Vote: I do not like it

I don't understand golang so here is my submission 75295223

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

Probably, the problem is that the input is read too slowly. (The other possibility is that Golang simply is too slow, in which case there is nothing you can do.)

I googled "go fast input" and got this. Try it out.

PS. I have never written in Go and looking this up took literally 5 seconds. Please, try to look for solutions before posting.