mohabstudent's blog

By mohabstudent, history, 20 months ago, In English

What is the difference between C++20 and C++17 ?

I have submitted two solutions for the problem B. Points on Plane in Educational Codeforces Round 145 (Rated for Div. 2).

the first sumbmission for the problem in C++20(64) and I got a WA 198792748.

However I tried C++17 and got AC 198792971.

I need a clarification for this situation ,please.

Thanks for help!

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

| Write comment?
»
20 months ago, # |
  Vote: I like it +3 Vote: I do not like it

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

»
20 months ago, # |
  Vote: I like it +3 Vote: I do not like it

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

»
20 months ago, # |
  Vote: I like it +5 Vote: I do not like it

In short, precision issues with sqrt() fn in cpp20. Read this blog and the comments for more details. I am sure it gonna help you.