結果
| 問題 |
No.964 2020
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-01-13 20:46:34 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,020 ms |
| コード長 | 901 bytes |
| コンパイル時間 | 1,911 ms |
| コンパイル使用メモリ | 165,768 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-21 16:44:29 |
| 合計ジャッジ時間 | 2,139 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[])
{
int n;
cin >> n;
if(n == 1){
printf("1\n");
}
else if (n == 2)
{
printf("1212\n");
}
else if (n == 3)
{
printf("111222333\n");
}
else if (n == 4)
{
printf("1111222233334444\n");
}
else if (n == 5)
{
printf("1111122222333334444455555\n");
}
else if (n == 6)
{
printf("111111222222333333444444555555666666\n");
}
else if (n == 7)
{
printf("1111111222222233333334444444555555566666667777777\n");
}
else if (n == 8)
{
printf("1111111122222222333333334444444455555555666666667777777788888888\n");
}
else if (n == 9)
{
printf("111111111222222222333333333444444444555555555666666666777777777888888888999999999\n");
}
else if (n == 10)
{
printf("1111111111222222222233333333334444444444555555555566666666667777777777888888888899999999990000000000\n");
}
return 0;
}