結果

問題 No.1528 Not 1
ユーザー raven7959raven7959
提出日時 2021-08-07 23:28:06
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 273 bytes
コンパイル時間 174 ms
コンパイル使用メモリ 81,716 KB
実行使用メモリ 71,268 KB
最終ジャッジ日時 2023-10-18 23:41:06
合計ジャッジ時間 2,672 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
53,428 KB
testcase_01 AC 49 ms
63,240 KB
testcase_02 AC 42 ms
59,988 KB
testcase_03 AC 42 ms
60,188 KB
testcase_04 AC 49 ms
68,188 KB
testcase_05 AC 41 ms
59,752 KB
testcase_06 AC 43 ms
60,552 KB
testcase_07 AC 45 ms
63,312 KB
testcase_08 AC 45 ms
64,344 KB
testcase_09 AC 40 ms
59,584 KB
testcase_10 AC 42 ms
60,292 KB
testcase_11 AC 37 ms
53,428 KB
testcase_12 AC 36 ms
53,428 KB
testcase_13 AC 37 ms
53,428 KB
testcase_14 AC 37 ms
53,428 KB
testcase_15 WA -
testcase_16 AC 37 ms
53,428 KB
testcase_17 AC 38 ms
53,428 KB
testcase_18 AC 48 ms
63,540 KB
testcase_19 AC 55 ms
71,268 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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