結果

問題 No.2198 Concon Substrings (COuNt-CONstruct Version)
ユーザー t98slider
提出日時 2023-01-20 23:01:11
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 264 bytes
コンパイル時間 1,465 ms
コンパイル使用メモリ 166,620 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-23 11:00:31
合計ジャッジ時間 5,896 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 104
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;

int main(){
    ll m;
    cin >> m;
    for(ll i = 20000; i >= 1; i--){
        ll c = i * (i + 1) / 2;
        while(m >= c){m -= c; cout << 'c';}
        cout << "on";
    }
    cout << '\n';
}
0