結果
| 問題 | No.2198 Concon Substrings (COuNt-CONstruct Version) |
| コンテスト | |
| ユーザー |
momoyuu
|
| 提出日時 | 2023-05-20 00:36:04 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 624 bytes |
| 記録 | |
| コンパイル時間 | 2,242 ms |
| コンパイル使用メモリ | 333,616 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-27 20:21:19 |
| 合計ジャッジ時間 | 17,028 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 3 |
| other | WA * 104 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
int main(){
ll m;
cin>>m;
vector<char> ans;
ll a = 10000;
ll b = 10000;
ll cnt = 0;
ll now = 0;
while(a>0||b>0){
while(a&&b&&a*b+cnt<=m){
cnt += a * b;
ans.push_back('m');
}
if(now==1){
b--;
ans.push_back('o');
}else{
a--;
ans.push_back('c');
}
now ^= 1;
}
reverse(ans.begin(),ans.end());
assert(cnt==m);
for(int i = 0;i<ans.size();i++){
cout<<ans[i];
}
cout<<endl;
}
momoyuu