Page 3 of 3

Re: 10683 - The Decadary Watch

Posted: Mon Apr 28, 2014 3:21 pm
by uDebug
Replying to follow the thread.

Re: 10683 - The decadary watch

Posted: Wed Feb 25, 2015 3:26 pm
by xnorax
Why 125/108?
I divide CC in traditional time/ CC in decimal time and got 1.157407395
result *125/108 AC
but
result *1.157407395 WA

Re: 10683 - The decadary watch

Posted: Thu Feb 26, 2015 2:28 am
by brianfry713
125 / 108 = 1.1574074074074074074074074074074

Re: 10683 - The decadary watch

Posted: Thu Feb 26, 2015 9:04 am
by xnorax
Tank you brianfry713
I know it is different. but I would know how it comes??? I explained my algorithm to solve it which is wrong.

Re: 10683 - The decadary watch

Posted: Thu Feb 26, 2015 9:38 pm
by brianfry713
Traditional time has 24 * 60 * 60 * 100 = 8,640,000 hundredths of a second.
Metric time has 10 * 100 * 100 * 100 = 10,000,000 hundredths of a second.
10,000,000 / 8,640,000 = 125 / 108

Re: 10683 - The decadary watch

Posted: Fri Oct 23, 2015 8:41 am
by hiddenhopes
little problem int the sample output.
i think the out put "9999999" should be replaced by "9999998" ,so that there will be no confusion about using double or integer.