ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1262. Pseudo-Roman Number

Stanica Andrei why i get WA in test #11 ? [5] // Problem 1262. Pseudo-Roman Number 31 Mar 2004 14:04
I can also say, that it is the first test in which N has more than 1000 digits ...
I think 10000 = MMMMMMMMMM
So I output 10...
Is this right?
No, you are wrong. The answer is 1, because all the numbers 10^k and 5*10^k are written in Pseudo-Romanian system with only 1 (maybe very unusual) digit.