結果

問題 No.1528 Not 1
ユーザー minimumminimum
提出日時 2021-06-04 20:20:30
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 328 bytes
コンパイル時間 1,102 ms
コンパイル使用メモリ 87,200 KB
実行使用メモリ 83,588 KB
最終ジャッジ日時 2023-08-12 09:13:16
合計ジャッジ時間 4,199 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,344 KB
testcase_01 AC 81 ms
82,620 KB
testcase_02 AC 75 ms
77,644 KB
testcase_03 AC 75 ms
78,476 KB
testcase_04 AC 80 ms
82,808 KB
testcase_05 AC 73 ms
76,188 KB
testcase_06 AC 78 ms
79,648 KB
testcase_07 AC 82 ms
82,608 KB
testcase_08 AC 77 ms
78,924 KB
testcase_09 AC 75 ms
76,440 KB
testcase_10 AC 76 ms
78,776 KB
testcase_11 AC 69 ms
71,456 KB
testcase_12 AC 72 ms
71,296 KB
testcase_13 AC 70 ms
71,336 KB
testcase_14 AC 68 ms
71,316 KB
testcase_15 AC 68 ms
71,120 KB
testcase_16 AC 70 ms
71,228 KB
testcase_17 AC 69 ms
71,420 KB
testcase_18 AC 80 ms
83,588 KB
testcase_19 AC 82 ms
83,388 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = []
if n%2 == 0:
    for i in range(1,n//2 + 1):
        a.append(str(2*i))
    print(" ".join(a))
elif n == 1:
    print(1)
elif n == 3 or n == 5:
    print(-1)
else:
    a.append("3")
    a.append("6")
    for i in range(1,n//2 + 1):
        if i != 3:
            a.append(str(2*i))
    print(" ".join(a))
0