結果

問題 No.405 ローマ数字の腕時計
ユーザー 双六双六
提出日時 2020-08-11 03:48:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 115 ms / 2,000 ms
コード長 490 bytes
コンパイル時間 331 ms
コンパイル使用メモリ 87,156 KB
実行使用メモリ 72,912 KB
最終ジャッジ日時 2023-09-21 00:47:12
合計ジャッジ時間 4,658 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
72,420 KB
testcase_01 AC 111 ms
72,584 KB
testcase_02 AC 112 ms
72,536 KB
testcase_03 AC 112 ms
72,592 KB
testcase_04 AC 111 ms
72,660 KB
testcase_05 AC 114 ms
72,600 KB
testcase_06 AC 112 ms
72,856 KB
testcase_07 AC 111 ms
72,600 KB
testcase_08 AC 113 ms
72,604 KB
testcase_09 AC 112 ms
72,660 KB
testcase_10 AC 113 ms
72,532 KB
testcase_11 AC 115 ms
72,660 KB
testcase_12 AC 112 ms
72,712 KB
testcase_13 AC 110 ms
72,448 KB
testcase_14 AC 114 ms
72,632 KB
testcase_15 AC 110 ms
72,488 KB
testcase_16 AC 110 ms
72,668 KB
testcase_17 AC 111 ms
72,604 KB
testcase_18 AC 112 ms
72,712 KB
testcase_19 AC 113 ms
72,736 KB
testcase_20 AC 111 ms
72,912 KB
testcase_21 AC 111 ms
72,624 KB
testcase_22 AC 111 ms
72,524 KB
testcase_23 AC 113 ms
72,636 KB
testcase_24 AC 113 ms
72,776 KB
testcase_25 AC 110 ms
72,664 KB
testcase_26 AC 112 ms
72,592 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# 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()
0