結果

問題 No.3625 Find Superfibonacci Number
コンテスト
ユーザー yuunegi
提出日時 2026-08-14 21:57:19
言語 C++23
(gcc 15.2.0 + boost 1.90.0)
コンパイル:
g++-15 -O2 -lm -std=c++23 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 4 ms / 2,000 ms
+ 844µs
コード長 635 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 2,133 ms
コンパイル使用メモリ 331,616 KB
実行使用メモリ 9,348 KB
最終ジャッジ日時 2026-08-14 21:57:23
合計ジャッジ時間 3,629 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>
using namespace std;
int main(void){
    int t;
    cin>>t;
    while(t--){
        int k;
        cin>>k;
        if(k<18){
            cout<<k/2+1<<0<<k-(k/2+1)<<endl;
        }else{
            if(k%9==8){
                cout<<908;
                k-=9;
                for(int i=0;i<k/9;i++){
                    cout<<9;
                }
                cout<<endl;
            }else{
                cout<<k%9+1<<908;
                k-=18;
                for(int i=0;i<k/9;i++){
                    cout<<9;
                }
                cout<<endl;
            }
        }
    }
    return 0;
}
0