結果

問題 No.3264 岩井数
コンテスト
ユーザー srjywrdnprkt
提出日時 2025-10-20 16:32:29
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 22 ms / 2,000 ms
コード長 475 bytes
コンパイル時間 2,403 ms
コンパイル使用メモリ 278,648 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-10-20 16:32:38
合計ジャッジ時間 4,517 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
//#include <atcoder/modint>

using namespace std;
//using namespace atcoder;
using ll = long long;
//using mint = modint998244353;

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

    /*
       Nを繰り返したものも回文、また、Nの倍数。
       N = T9
       N+N = (T9T)9
    */
    string N;
    cin >> N;
    string ans=N;
    while(stoll(ans) < (ll)1e9) ans += N;
    cout << ans << endl;

    return 0;
}
0