結果
問題 | No.964 2020 |
ユーザー | paruf4 |
提出日時 | 2020-08-07 22:47:47 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,020 ms |
コード長 | 1,173 bytes |
コンパイル時間 | 2,875 ms |
コンパイル使用メモリ | 194,192 KB |
最終ジャッジ日時 | 2025-01-12 17:36:41 |
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define all(hoge) (hoge).begin(), (hoge).end() #define en '\n' using ll = long long; using ull = unsigned long long; typedef vector<ll> vec; typedef vector<vector<ll>> mat; typedef vector<vector<vector<ll>>> mat3; typedef vector<string> svec; typedef vector<vector<string>> smat; typedef pair<ll, ll> P; constexpr long long INF = 1LL << 60; constexpr int INF_INT = 1 << 25; constexpr long long MOD = (ll)1e9 + 7; // constexpr long long MOD = 998244353LL; using ld = long double; static const ld pi = 3.141592653589793L; template <class T> bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; } template <class T> bool chmin(T &a, const T &b) { if (b < a) { a = b; return 1; } return 0; } // for (int i = 0; i <= n; ++i) // vector<long long> v(n), c(n); int main() { int n; cin >> n; string res = ""; if (n == 1) { cout << "1" << endl; exit(0); } for (int i = 0; i < n; ++i) { for (int j = 0; j < n; ++j) { res = to_string(i) + res; } } cout << res << endl; return 0; }