結果
問題 |
No.405 ローマ数字の腕時計
|
ユーザー |
|
提出日時 | 2021-06-21 17:42:21 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 235 bytes |
コンパイル時間 | 158 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-06-22 22:51:47 |
合計ジャッジ時間 | 1,642 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 WA * 13 |
ソースコード
S1,T=input().split() T=int(T) S1=(S1.count("I")+(S1.count("V")*5)+(S1.count("X")*10)) S2=(S1+T)%12 out=[] if S2-10>=0: out+="X" S2-=10 if S2-5>=0: out+="V" S2-=5 while 1<=S2<5: out+="I" S2-=1 print("".join(out))