結果

問題 No.1528 Not 1
ユーザー raven7959raven7959
提出日時 2021-08-07 23:29:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 56 ms / 2,000 ms
コード長 273 bytes
コンパイル時間 229 ms
コンパイル使用メモリ 81,660 KB
実行使用メモリ 69,220 KB
最終ジャッジ日時 2023-10-18 23:41:27
合計ジャッジ時間 2,799 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
51,528 KB
testcase_01 AC 48 ms
61,620 KB
testcase_02 AC 44 ms
58,596 KB
testcase_03 AC 44 ms
59,120 KB
testcase_04 AC 56 ms
67,672 KB
testcase_05 AC 43 ms
58,960 KB
testcase_06 AC 46 ms
60,044 KB
testcase_07 AC 47 ms
61,800 KB
testcase_08 AC 48 ms
62,492 KB
testcase_09 AC 43 ms
58,076 KB
testcase_10 AC 46 ms
59,404 KB
testcase_11 AC 39 ms
51,524 KB
testcase_12 AC 39 ms
51,528 KB
testcase_13 AC 40 ms
51,524 KB
testcase_14 AC 40 ms
51,520 KB
testcase_15 AC 38 ms
51,520 KB
testcase_16 AC 39 ms
51,520 KB
testcase_17 AC 40 ms
51,520 KB
testcase_18 AC 49 ms
62,340 KB
testcase_19 AC 55 ms
69,220 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
if N==1 or N==2:
    print(1)
elif 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