Please read the new rule regarding the restriction on the use of AI tools. ×

Negationist's blog

By Negationist, history, 112 minutes ago, In English

Here is an AC submission:

AC

Here is an WA submission:

WA

The only difference is a custom sqrt function. This was my worse contest ever because of this. Wasted like 40 mins trying figure this out and needed like 1 more min to solve C. Someone please explain because this is so weird and frustrating.

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

»
103 minutes ago, # |
  Vote: I like it +4 Vote: I do not like it

Man both your codes are same :)

»
101 minute(s) ago, # |
  Vote: I like it 0 Vote: I do not like it

I believe B was too tight on constraints https://codeforces.me/contest/2020/submission/283621067 Here's my solution you can check. Make hi = 2*k and it would work.

»
100 minutes ago, # |
  Vote: I like it +1 Vote: I do not like it

I guess you pasted same codes

  • »
    »
    74 minutes ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    oh shoot lol youre right, either way i got a good answer

»
90 minutes ago, # |
  Vote: I like it 0 Vote: I do not like it
  1. You pasted same code.

  2. I found your submissions.

  3. seems like you didn't consider floating precision error.

  4. here's mine with STL 283569591

  • »
    »
    83 minutes ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Ok thanks. I will do some research into floating point imprecision and how to avoid it.