結果

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

ソースコード

diff #

#N,K=map(int, input().split())
#A=list(map(int, input().split()))
ans=[]
N=int(input())

while N>=720:
  ans.append('C')
  N-=720
  
while N>=360:
  ans.append('M')
  N-=360
  
while N>=180:
  ans.append('S')
  N-=180
  
while N>=30:
  ans.append('R')
  N-=30
  
while N>=6:
  ans.append('o')
  N-=6
  
while N>=1:
  ans.append('.')
  N-=1
print(''.join(ans))
0