結果
問題 |
No.405 ローマ数字の腕時計
|
ユーザー |
|
提出日時 | 2020-05-22 20:35:31 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 28 ms / 2,000 ms |
コード長 | 323 bytes |
コンパイル時間 | 158 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-06 19:28:24 |
合計ジャッジ時間 | 1,472 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 27 |
ソースコード
S1,T=input().split() dial_list=["I","II","III","IIII","V","VI","VII","VIII","IX","X","XI","XII"] for i in range(len(dial_list)): if dial_list[i] == S1: break i=i+1 T = int(T)%12 if int(T)>0 else abs(int(T))%12 *-1 if T+i > 12: a=T+i-12 elif T+i < 1: a=T+i+12 else: a=T+i print(dial_list[a-1])