結果
問題 |
No.2775 Nuisance Balls
|
ユーザー |
![]() |
提出日時 | 2024-06-07 22:47:37 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 496 bytes |
コンパイル時間 | 3,857 ms |
コンパイル使用メモリ | 244,820 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-26 09:13:15 |
合計ジャッジ時間 | 3,606 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
#include<bits/stdc++.h> using namespace std; //#include<atcoder/all> //using namespace atcoder; using ll = long long; using ull = unsigned long long; #define rep(i,n) for(int i=0;i<(n);++i) int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin>>n; int b[] = {720,360,180,30,6,1}; string c = "CMSRo."; int m = 6; int idx=0; string ans = ""; while(n){ int am = n/b[idx]; n%=b[idx]; for(int i=0;i<am;++i) ans.push_back(c[idx]); idx++; } cout << ans << endl; }