結果

問題 No.964 2020
ユーザー chacoder1chacoder1
提出日時 2020-01-13 20:29:26
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,020 ms
コード長 773 bytes
コンパイル時間 1,434 ms
コンパイル使用メモリ 162,196 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-23 13:00:41
合計ジャッジ時間 2,332 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
  int N;
  cin>>N;
 if(N==1){cout<<"1";}
  else if (N==2){cout<<"2211";}
    else if (N==3){cout<<"333222111";}
    else if (N==4){cout<<"4444333322221111";}
    else if (N==5){cout<<"5555544444333332222211111";}
    else if (N==6){cout<<"666666555555444444333333222222111111";}
    else if (N==7){cout<<"7777777666666655555554444444333333322222221111111";}
    else if (N==8){cout<<"8888888877777777666666665555555544444444333333332222222211111111";}
    else if (N==9){cout<<"999999999888888888777777777666666666555555555444444444333333333222222222111111111";}
    else if (N==10){cout<<"1111111111000000000022222222223333333333444444444455555555556666666666777777777788888888889999999999";}

  
	return 0; 
}


0