結果

問題 No.964 2020
ユーザー あるふぁ
提出日時 2020-01-13 20:25:54
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,020 ms
コード長 541 bytes
コンパイル時間 952 ms
コンパイル使用メモリ 96,056 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-21 16:10:32
合計ジャッジ時間 1,598 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <algorithm>
#include <iomanip>
#include <cmath>
#include <vector>
#include <set>
#include <queue>
#include <unordered_map>
#include <map>
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
using lint = long long;
using namespace std;

const int MOD = 1000000007;

int main() {
    int N;
    cin >> N;

    string res = "";
    char fill = '9';

    rep(i, N) {
        rep(j, N) {
            char t = fill - i;
            res += t;
        }
    }

    cout << res << endl;
    return 0;
}
0