## 10683 - The decadary watch

Moderator: Board moderators

uDebug
A great helper
Posts: 475
Joined: Tue Jul 24, 2012 4:23 pm

### Re: 10683 - The Decadary Watch

Check input and AC output for over 7,500 problems on uDebug!

xnorax
New poster
Posts: 9
Joined: Thu Jun 26, 2014 9:31 pm

### Re: 10683 - The decadary watch

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

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

### Re: 10683 - The decadary watch

125 / 108 = 1.1574074074074074074074074074074
Check input and AC output for thousands of problems on uDebug!

xnorax
New poster
Posts: 9
Joined: Thu Jun 26, 2014 9:31 pm

### Re: 10683 - The decadary watch

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.

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

### Re: 10683 - The decadary watch

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
Check input and AC output for thousands of problems on uDebug!

hiddenhopes
New poster
Posts: 4
Joined: Tue Aug 18, 2015 9:52 am

### Re: 10683 - The decadary watch

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.