結果

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

テストケース

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

ソースコード

diff #

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

t=int(t)
answer=''

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-11])
else:
    print(number[answer])
0