結果

問題 No.3264 岩井数
コンテスト
ユーザー HikaruKonno
提出日時 2025-11-22 16:46:15
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 356 bytes
コンパイル時間 646 ms
コンパイル使用メモリ 80,380 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2025-11-22 16:46:19
合計ジャッジ時間 3,458 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include<iostream>

using namespace std;

using ll = long long;

int main() {
    ios::sync_with_stdio(false);
    std::cin.tie(nullptr);

    ll n;
    cin >> n;
    auto f = [&](ll x)->ll {
        ll t = 1;
        while (t < x) t *= 10;
        return x * (t + 1);
        };
    while (n < 1000000000) n = f(n);
    cout << n << endl;

    return 0;
}
0