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

Автор GGOSHAB, история, 22 месяца назад, По-русски

Hello! Not so far I've solved a geometry problem. I was need to multiplicate some integers, but first time I did it with doubles and my solution got TLE. Than I changed doubles to long long and it got AC. Than I started some experiments and set type of numbers to doubles again and changed GNU C++17 compiler to MSVC and it also got AC. And now I'm confused with it. Adding #pragma GCC optimize("Ofast")(which includes "fast-math") doesn't help. Can you explain what is it and is it possible to make doubles working on GCC faster?(I need it bc MSVC ignores ios::sync_with_stdio(0);)

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

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

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