結果

問題 No.405 ローマ数字の腕時計
ユーザー 👑 yumechiyumechi
提出日時 2016-08-22 23:28:02
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 268 bytes
コンパイル時間 265 ms
コンパイル使用メモリ 86,920 KB
実行使用メモリ 79,264 KB
最終ジャッジ日時 2023-08-25 18:19:29
合計ジャッジ時間 4,110 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 AC 62 ms
71,124 KB
testcase_04 AC 66 ms
71,228 KB
testcase_05 AC 64 ms
71,324 KB
testcase_06 RE -
testcase_07 AC 64 ms
71,208 KB
testcase_08 AC 64 ms
71,400 KB
testcase_09 AC 67 ms
71,292 KB
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 AC 64 ms
71,448 KB
testcase_14 RE -
testcase_15 RE -
testcase_16 AC 65 ms
71,144 KB
testcase_17 AC 65 ms
71,084 KB
testcase_18 AC 64 ms
71,332 KB
testcase_19 AC 66 ms
71,336 KB
testcase_20 RE -
testcase_21 AC 66 ms
71,380 KB
testcase_22 RE -
testcase_23 AC 64 ms
71,336 KB
testcase_24 AC 65 ms
71,152 KB
testcase_25 RE -
testcase_26 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    s1, t = input().split()
    t = int(t)
    t = t if t > 0 else (12 - -t)
    clockchar = ["XII", "I","II","III","IIII","V","VI","VII","VIII","IX","X","XI"]
    print(clockchar[(clockchar.index(s1) + int(t) % 12)])

if __name__=="__main__":
    solve()
0