結果
| 問題 |
No.964 2020
|
| コンテスト | |
| ユーザー |
leaf_1415
|
| 提出日時 | 2020-01-13 20:23:37 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,020 ms |
| コード長 | 359 bytes |
| コンパイル時間 | 721 ms |
| コンパイル使用メモリ | 57,684 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-21 16:06:35 |
| 合計ジャッジ時間 | 1,330 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
#include <iostream>
#include <string>
#include <algorithm>
#define llint long long
using namespace std;
int main(void)
{
ios::sync_with_stdio(0);
cin.tie(0);
int n;
cin >> n;
string ans;
for(int i = 1; i <= n; i++){
for(int j = 1; j <= n; j++){
if(i == 10) ans += '0';
else ans += (char)(i+'0');
}
}
cout << ans << endl;
return 0;
}
leaf_1415