結果
問題 | No.964 2020 |
ユーザー | sorag |
提出日時 | 2022-08-04 13:28:25 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,020 ms |
コード長 | 545 bytes |
コンパイル時間 | 538 ms |
コンパイル使用メモリ | 73,124 KB |
実行使用メモリ | 4,352 KB |
最終ジャッジ日時 | 2023-10-12 10:54:36 |
合計ジャッジ時間 | 1,541 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
4,352 KB |
testcase_01 | AC | 2 ms
4,352 KB |
testcase_02 | AC | 2 ms
4,352 KB |
testcase_03 | AC | 1 ms
4,348 KB |
testcase_04 | AC | 2 ms
4,348 KB |
testcase_05 | AC | 2 ms
4,348 KB |
testcase_06 | AC | 2 ms
4,352 KB |
testcase_07 | AC | 2 ms
4,352 KB |
testcase_08 | AC | 1 ms
4,352 KB |
testcase_09 | AC | 1 ms
4,352 KB |
ソースコード
#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; }