結果
問題 | No.2775 Nuisance Balls |
ユーザー |
👑 ![]() |
提出日時 | 2024-05-27 20:56:25 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 40 ms / 2,000 ms |
コード長 | 397 bytes |
コンパイル時間 | 84 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,392 KB |
最終ジャッジ日時 | 2024-12-24 17:47:32 |
合計ジャッジ時間 | 1,716 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
import sysfrom fractions import Fractioninput = sys.stdin.readlinedef read_values(): return tuple(map(int, input().split()))def read_list(): return list(read_values())def main():n=int(input())s=[(720,'C'),(360,'M'),(180,'S'),(30,'R'),(6,'o'),(1,'.')]for c,v in s:while n >= c:print(v,end='')n -= cif __name__ == "__main__":main()