結果

問題 No.2775 Nuisance Balls
コンテスト
ユーザー detteiuu
提出日時 2024-06-07 21:26:04
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 27 ms / 2,000 ms
コード長 482 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 296 ms
コンパイル使用メモリ 85,248 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2026-06-01 03:48:05
合計ジャッジ時間 4,110 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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