#P1465. [USACO2.2] 序言页码 Preface Numbering
[USACO2.2] 序言页码 Preface Numbering
Description
Given , count how many times each character appears in the Roman numeral representations of .
For example, when , the representations are I, II, III, IV, V. There are occurrences of I and occurrences of V.
Input Format
A single integer .
Output Format
Each line contains a character and an integer , indicating that this character appears times. Characters must be printed in the increasing order of the Roman numeral table.
5
I 7
V 2
Hint
Constraints
For of the testdata, .
Translated from NOCOW.
USACO 2.2.
Translated by ChatGPT 5
京公网安备 11011102002149号