結果
| 問題 |
No.964 2020
|
| コンテスト | |
| ユーザー |
Konton7
|
| 提出日時 | 2020-01-13 20:30:47 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,020 ms |
| コード長 | 393 bytes |
| コンパイル時間 | 2,146 ms |
| コンパイル使用メモリ | 195,272 KB |
| 最終ジャッジ日時 | 2025-01-08 17:30:39 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
int n;
cin >> n;
string ans, ans2;
for (int i = 0; i < n; i++)
for (int j = 0; j < n; j++)
ans += j + '0';
if (n == 1)
ans2 = "1";
else
for (char f : ans)
ans2 = f + ans2;
cout << ans2 << endl;
return 0;
}
Konton7