結果
問題 |
No.964 2020
|
ユーザー |
![]() |
提出日時 | 2020-01-13 20:28:17 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 790 bytes |
コンパイル時間 | 1,904 ms |
コンパイル使用メモリ | 166,180 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-21 16:14:51 |
合計ジャッジ時間 | 2,709 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 7 WA * 1 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int n = 0; cin >> n; if(n == 1){ cout << 1 << endl; } else if(n == 2){ cout << "1122" << endl; } else if(n==3){ cout << "111222333" << endl; } else if(n==4){ cout << "1111222233334444" << endl; } else if(n==5){ cout << "1111122222333334444455555" << endl; } else if(n==6){ cout << "111111222222333333444444555555666666" << endl; } else if(n==7){ cout << "1111111222222233333334444444555555566666667777777" << endl; } else if(n==8){ cout << "1111111122222222333333334444444455555555666666667777777788888888" << endl; } else if(n==9){ cout << "111111111222222222333333333444444444555555555666666666777777777888888888999999999" << endl; } }