結果

問題 No.405 ローマ数字の腕時計
ユーザー notsix4
提出日時 2021-12-03 16:34:52
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 222 bytes
コンパイル時間 169 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-07-05 20:18:24
合計ジャッジ時間 1,747 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20 WA * 1 RE * 6
権限があれば一括ダウンロードができます

ソースコード

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