結果

問題 No.2775 Nuisance Balls
ユーザー detteiuu
提出日時 2024-06-07 21:26:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 51 ms / 2,000 ms
コード長 482 bytes
コンパイル時間 378 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2024-12-26 06:55:55
合計ジャッジ時間 2,712 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

ans = []
while N >= 720:
    for i in range(N//720):
        ans.append("C")
    N %= 720
while N >= 360:
    for i in range(N//360):
        ans.append("M")
    N %= 360
while N >= 180:
    for i in range(N//180):
        ans.append("S")
    N %= 180
while N >= 30:
    for i in range(N//30):
        ans.append("R")
    N %= 30
while N >= 6:
    for i in range(N//6):
        ans.append("o")
    N %= 6
for i in range(N):
    ans.append(".")

print("".join(ans))
0