結果

問題 No.964 2020
ユーザー mostofmostof
提出日時 2020-01-13 20:30:12
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,020 ms
コード長 925 bytes
コンパイル時間 1,452 ms
コンパイル使用メモリ 163,048 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-23 13:01:18
合計ジャッジ時間 2,392 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 2 ms
4,376 KB
testcase_05 AC 1 ms
4,380 KB
testcase_06 AC 1 ms
4,376 KB
testcase_07 AC 2 ms
4,380 KB
testcase_08 AC 2 ms
4,376 KB
testcase_09 AC 2 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
  }
  else{
    cout << "1111111111000000000022222222223333333333444444444455555555556666666666777777777788888888889999999999"<< endl;
  }
}


0