結果
問題 |
No.964 2020
|
ユーザー |
![]() |
提出日時 | 2020-08-23 19:06:13 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,020 ms |
コード長 | 348 bytes |
コンパイル時間 | 2,166 ms |
コンパイル使用メモリ | 193,408 KB |
最終ジャッジ日時 | 2025-01-13 12:49:33 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; if (n == 1) { cout << 1 << endl; return 0; } string ans; for (int i = 1; i <= n; ++i) { ans += (char) ('0' + (n - i)); } for (int i = 0; i < n; i++) { cout << ans; } cout << endl; return 0; }