結果

問題 No.405 ローマ数字の腕時計
ユーザー knt3110knt3110
提出日時 2018-05-19 00:28:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 274 bytes
コンパイル時間 387 ms
コンパイル使用メモリ 10,772 KB
実行使用メモリ 7,968 KB
最終ジャッジ日時 2023-09-10 23:29:33
合計ジャッジ時間 2,027 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 AC 16 ms
7,828 KB
testcase_04 AC 16 ms
7,936 KB
testcase_05 AC 16 ms
7,844 KB
testcase_06 AC 15 ms
7,832 KB
testcase_07 WA -
testcase_08 AC 16 ms
7,872 KB
testcase_09 RE -
testcase_10 RE -
testcase_11 AC 16 ms
7,828 KB
testcase_12 AC 16 ms
7,944 KB
testcase_13 AC 17 ms
7,796 KB
testcase_14 RE -
testcase_15 RE -
testcase_16 AC 16 ms
7,776 KB
testcase_17 AC 16 ms
7,848 KB
testcase_18 RE -
testcase_19 AC 17 ms
7,776 KB
testcase_20 AC 16 ms
7,772 KB
testcase_21 RE -
testcase_22 RE -
testcase_23 WA -
testcase_24 AC 16 ms
7,772 KB
testcase_25 RE -
testcase_26 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

s,t=(str(i) for i in input().split())

t=int(t)
answer=0

number=['I','II','III','IV','V','VI','VII','VIII','IX','X','XI','XII']

for i in range(len(number)):
    if s==number[i]:
        answer=i+t

if answer>11:
    print(number[answer-12])
else:
    print(number[answer])
0