結果
問題 | No.2775 Nuisance Balls |
ユーザー |
|
提出日時 | 2024-06-07 22:01:05 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 563 bytes |
コンパイル時間 | 7,213 ms |
コンパイル使用メモリ | 337,328 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-26 08:02:20 |
合計ジャッジ時間 | 8,026 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
#include <bits/stdc++.h>using namespace std;#include <atcoder/all>using namespace atcoder;#define ll long long#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)using mint = modint998244353;const int dx[4]={0,1,0,-1};const int dy[4]={1,0,-1,0};int n;int main(){cin >> n;string ans;vector<pair<int,char>>num={{720,'C'},{360,'M'},{180,'S'},{30,'R'},{6,'o'},{1,'.'}};rep(i,6){while(n>=num[i].first){ans.push_back(num[i].second);n-=num[i].first;}}cout << ans << endl;return 0;}