hsnprsd's blog

By hsnprsd, 10 years ago, In English

Hello everyone :D
I had submitted this code for "Preface Numbering" problem on usaco.
usaco says :

----- our output ---------
I_1400
V_500
X_1500
L_500
C_1500
D_500
M_101
---- your output ---------
I_1400
V_500
X_1500
L_500
C_1500
D_501
M_100
------ Data for Run 5 [length=5 bytes] ------
1000

But when I run my code in my computer my answer is equal to the usaco answer's. What's the problem?
Here is my code : http://paste.ubuntu.com/9743266/

  • Vote: I like it
  • +4
  • Vote: I do not like it

»
10 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Hi Ehsan! Please write the link of problem statement. I couldn't find that. Thanks...