結果

問題 No.1528 Not 1
ユーザー nasubi24nasubi24
提出日時 2021-06-04 21:03:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 103 ms / 2,000 ms
コード長 296 bytes
コンパイル時間 297 ms
コンパイル使用メモリ 87,148 KB
実行使用メモリ 87,092 KB
最終ジャッジ日時 2023-08-12 10:42:50
合計ジャッジ時間 4,071 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,196 KB
testcase_01 AC 100 ms
85,768 KB
testcase_02 AC 86 ms
78,512 KB
testcase_03 AC 87 ms
79,220 KB
testcase_04 AC 101 ms
85,228 KB
testcase_05 AC 84 ms
76,752 KB
testcase_06 AC 96 ms
82,044 KB
testcase_07 AC 100 ms
85,488 KB
testcase_08 AC 89 ms
79,716 KB
testcase_09 AC 82 ms
77,184 KB
testcase_10 AC 88 ms
79,692 KB
testcase_11 AC 73 ms
71,076 KB
testcase_12 AC 73 ms
71,240 KB
testcase_13 AC 73 ms
71,264 KB
testcase_14 AC 72 ms
71,204 KB
testcase_15 AC 73 ms
71,416 KB
testcase_16 AC 74 ms
71,376 KB
testcase_17 AC 74 ms
71,300 KB
testcase_18 AC 103 ms
87,072 KB
testcase_19 AC 102 ms
87,092 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
if n<=2:
    print(1)
elif n==3 or n==5:
    print(-1)
else:
    if n%2==0:
        ans=[]
        for i in range(2,n+1,2):
            ans.append(i)
        print(*ans)
    else:
        ans=[3,6,2,4]
        for i in range(8,n+1,2):
            ans.append(i)
        print(*ans)
0