結果
問題 |
No.405 ローマ数字の腕時計
|
ユーザー |
![]() |
提出日時 | 2020-08-11 03:48:56 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 45 ms / 2,000 ms |
コード長 | 490 bytes |
コンパイル時間 | 162 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 60,544 KB |
最終ジャッジ日時 | 2024-07-06 19:29:56 |
合計ジャッジ時間 | 2,103 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 27 |
ソースコード
# import sys; input = sys.stdin.buffer.readline # sys.setrecursionlimit(10**7) from collections import defaultdict con = 10 ** 9 + 7; INF = float("inf") import copy def getlist(): return list(map(int, input().split())) #処理内容 def main(): S1, T = input().split() L = ["I","II","III","IIII","V","VI","VII","VIII","IX","X","XI","XII"] time = L.index(S1) + 1 + int(T) if time % 12 == 0: print("XII") return time %= 12 print(L[time - 1]) if __name__ == '__main__': main()