結果
| 問題 |
No.964 2020
|
| コンテスト | |
| ユーザー |
chacoder1
|
| 提出日時 | 2020-01-13 20:29:26 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,020 ms |
| コード長 | 773 bytes |
| コンパイル時間 | 1,453 ms |
| コンパイル使用メモリ | 165,404 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-21 16:16:52 |
| 合計ジャッジ時間 | 2,067 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
#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;
}
chacoder1