結果

問題 No.1402 ビル街
ユーザー 👑 SPD_9X2SPD_9X2
提出日時 2021-02-19 23:35:59
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 434 bytes
コンパイル時間 266 ms
コンパイル使用メモリ 81,800 KB
実行使用メモリ 75,440 KB
最終ジャッジ日時 2023-10-16 23:43:39
合計ジャッジ時間 6,988 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,472 KB
testcase_01 AC 35 ms
53,472 KB
testcase_02 AC 35 ms
53,472 KB
testcase_03 AC 36 ms
53,472 KB
testcase_04 AC 37 ms
53,472 KB
testcase_05 WA -
testcase_06 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

if N == 1:
    print ("2000000000 1000000001 2000000000")
elif N == 2:
    print ("2000000000 315 36000 2000000000")
elif N == 3:
    print ("2000000000 3 2 3 2000000000")
elif N == 4:
    print ("2000000000 4 2 3 5 2000000000")
elif N >= 5:

    ans = [2]
    for i in range(N-1):
        if i % 2:
            ans = ans + [i+3]
        else:
            ans = [i+3] + ans
    print ("2000000000",*ans,"2000000000")
0