結果

問題 No.964 2020
ユーザー mostofmostof
提出日時 2020-01-13 20:27:43
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 793 bytes
コンパイル時間 1,493 ms
コンパイル使用メモリ 162,448 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-23 12:58:28
合計ジャッジ時間 2,569 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

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 << "111111111222222222333333333555444444444555555555666666666777777777888888888999999999" << endl;
  }
}


0