結果
| 問題 |
No.964 2020
|
| コンテスト | |
| ユーザー |
sorag
|
| 提出日時 | 2022-08-04 13:28:25 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,020 ms |
| コード長 | 545 bytes |
| コンパイル時間 | 684 ms |
| コンパイル使用メモリ | 73,480 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-14 09:46:43 |
| 合計ジャッジ時間 | 1,568 ms |
|
ジャッジサーバーID (参考情報) |
judge6 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<map>
#define all(x) x.begin(),x.end()
#define pb push_back
#define ll long long
using namespace std;
int main() {
int n;
int h=0;
cin >> n;
if (n == 1) cout << 1 << endl;
else if (n == 10) {
for (int i = 1; i <= 10; i++) {
cout << 1234567890;
}
cout << endl;
}
else {
for (int i = 1; i <= n; i++) {
h += i;
if (i != n) h *= 10;
else break;
}
for (int i = 1; i <= n; i++) {
cout << h;
}
cout << endl;
}
return 0;
}
sorag