Блог пользователя mohabstudent

Автор mohabstudent, история, 13 месяцев назад, По-английски

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!

  • Проголосовать: нравится
  • -17
  • Проголосовать: не нравится

»
13 месяцев назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

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

»
13 месяцев назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

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

»
13 месяцев назад, # |
  Проголосовать: нравится +5 Проголосовать: не нравится

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.