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

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

THE QUESTION (not really required)

http://www.spoj.com/problems/BLMIRINA/1

MY ANSWER****

http://ideone.com/SbYs7J

PROBLEM****

the answer should be 6 decimal places , for the TEST CASE

1

179 56 56

ACCEPTED ANSWER = 147.084601 102.015294

MY ANSWER = 147.084593 102.015289

As you see , it is only a minute difference and depends on technique used for solving a problem...any suggestions to get around it .

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

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

Just use long double instead of float. I got AC by modifying that. ( I think double will be fine too).

I'm no geometry expert, but I always heard not to use float in geometry problems.