Напоминание: в случае технических проблем любого характера, вы можете использовать m1.codeforces.com, m2.codeforces.com, m3.codeforces.com. ×

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

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

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
  • Проголосовать: не нравится