結果

問題 No.405 ローマ数字の腕時計
ユーザー aaaaaaaaaa
提出日時 2017-05-18 21:51:53
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 137 bytes
コンパイル時間 189 ms
コンパイル使用メモリ 11,800 KB
実行使用メモリ 10,128 KB
最終ジャッジ日時 2023-10-18 23:14:05
合計ジャッジ時間 2,001 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,100 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 30 ms
10,100 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 30 ms
10,100 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 29 ms
10,100 KB
testcase_11 AC 30 ms
10,100 KB
testcase_12 WA -
testcase_13 AC 29 ms
10,100 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 29 ms
10,100 KB
testcase_20 AC 29 ms
10,100 KB
testcase_21 AC 29 ms
10,100 KB
testcase_22 AC 30 ms
10,100 KB
testcase_23 AC 29 ms
10,100 KB
testcase_24 AC 29 ms
10,100 KB
testcase_25 WA -
testcase_26 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

s,t=input().split();a=0;t=int(t)
for x in s:a+=5 if x=='V' else 10 if x =='X' else 1
a=(a+t)%12;print('X'*(a>9)+'V'*((a-10)>4)+'I'*(a%5))
0