結果

問題 No.2775 Nuisance Balls
ユーザー cleantted
提出日時 2024-06-25 14:38:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 298 bytes
コンパイル時間 351 ms
コンパイル使用メモリ 82,444 KB
実行使用メモリ 53,344 KB
最終ジャッジ日時 2024-06-25 14:38:52
合計ジャッジ時間 2,595 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

res = ""
while N:
  if N >= 720:
    N -= 720
    res += "C"
  elif N >= 360:
    N -= 360
    res += "M"
  elif N >= 180:
    N -= 180
    res += "S"
  elif N >= 30:
    N -= 30
    res += "R"
  elif N >= 6:
    N -= 6
    res += "o"
  else:
    N -= 1
    res += "."

print(res)
0