結果
| 問題 | 
                            No.2775 Nuisance Balls
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2024-06-07 21:36:08 | 
| 言語 | C++23  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 3 ms / 2,000 ms | 
| コード長 | 357 bytes | 
| コンパイル時間 | 3,363 ms | 
| コンパイル使用メモリ | 242,672 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-12-26 07:18:51 | 
| 合計ジャッジ時間 | 3,999 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 22 | 
ソースコード
#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)n;i++)
int main(){
	int n;
	cin >> n;
	rep(i,n/720){
		cout << "C";
	}
	n%=720;
	rep(i,n/360){
		cout << "M";
	}
	n%=360;
	rep(i,n/180){
		cout << "S";
	}
	n%=180;
	rep(i,n/30){
		cout << "R";
	}
	n%=30;
	rep(i,n/6){
		cout << "o";	
	}
	n%=6;
	rep(i,n){
		cout << ".";
	}
	
}