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

Автор svg_af, история, 9 лет назад, По-английски

I was trying to solve this problem

and calculating the GCD for two double variables i put eps = 1e-8 and i got WA

wondering what was going on i looked at other codes and all they did that was different was put eps = 1e-4

i tried it and got AC, and tried every value upto 1e-8 and all of them got right answers

it got me wondering about the reason

here is my submission

any clarification would be appreciated

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

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

I'm also interested why this happened....Why does it have so many downvotes?