結果

問題 No.405 ローマ数字の腕時計
ユーザー aaaaaaaaaa
提出日時 2017-05-18 21:51:53
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 137 bytes
コンパイル時間 212 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-09-18 19:12:36
合計ジャッジ時間 1,862 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,496 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 26 ms
10,368 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 27 ms
10,368 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 26 ms
10,368 KB
testcase_11 AC 26 ms
10,496 KB
testcase_12 WA -
testcase_13 AC 27 ms
10,368 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 26 ms
10,624 KB
testcase_20 AC 26 ms
10,368 KB
testcase_21 AC 25 ms
10,496 KB
testcase_22 AC 25 ms
10,496 KB
testcase_23 AC 25 ms
10,496 KB
testcase_24 AC 24 ms
10,496 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