12414 - Calculating Yuan Fen

All about problems in Volume 124. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

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

12414 - Calculating Yuan Fen

Post by uDebug »

Here's some input / output that helped me during testing / debugging.

Note that the time time limit for the problem's 2 seconds.

Input:

Code: Select all

JYFTYR
ABCDEF
YTHHLS
YTHLML
LYXM
JYFLY
CBTZX
LXYZLE
LXYLYR
QWERTY
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
YTHHLS
AC Output:

Code: Select all

148
634
:(
910
96
4284
631
850
149
2277
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
Check input and AC output for over 7,500 problems on uDebug!

Find us on Facebook. Follow us on Twitter.
Post Reply

Return to “Volume 124 (12400-12499)”