結果

問題 No.405 ローマ数字の腕時計
ユーザー notsix4notsix4
提出日時 2021-12-03 16:34:52
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
RE  
実行時間 -
コード長 222 bytes
コンパイル時間 312 ms
コンパイル使用メモリ 10,720 KB
実行使用メモリ 8,016 KB
最終ジャッジ日時 2023-09-19 08:27:17
合計ジャッジ時間 2,538 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,760 KB
testcase_01 RE -
testcase_02 RE -
testcase_03 AC 17 ms
7,816 KB
testcase_04 RE -
testcase_05 AC 17 ms
7,784 KB
testcase_06 AC 16 ms
7,956 KB
testcase_07 AC 16 ms
7,776 KB
testcase_08 RE -
testcase_09 AC 16 ms
7,816 KB
testcase_10 AC 16 ms
7,844 KB
testcase_11 AC 17 ms
7,784 KB
testcase_12 AC 16 ms
7,956 KB
testcase_13 AC 16 ms
7,900 KB
testcase_14 RE -
testcase_15 WA -
testcase_16 AC 16 ms
7,836 KB
testcase_17 AC 16 ms
7,880 KB
testcase_18 RE -
testcase_19 AC 16 ms
7,776 KB
testcase_20 AC 16 ms
7,820 KB
testcase_21 AC 16 ms
7,876 KB
testcase_22 AC 17 ms
7,900 KB
testcase_23 AC 17 ms
7,960 KB
testcase_24 AC 17 ms
7,896 KB
testcase_25 AC 16 ms
7,780 KB
testcase_26 AC 16 ms
7,956 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,f=input().split()
f=int(f)
l=[]
for i in range(4):
    s="I"*(i+1)
    l.append(s)
for i in range(5):
    s="V"+"I"*i
    l.append(s)
for i in range(3):
    s="X"+"I"*i
    l.append(s)
c=l.index(n)
a=(c+f)%12
print(l[a])
0