結果

問題 No.1528 Not 1
ユーザー lemondolemondo
提出日時 2021-06-04 20:21:17
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 98 ms / 2,000 ms
コード長 293 bytes
コンパイル時間 296 ms
コンパイル使用メモリ 86,924 KB
実行使用メモリ 83,360 KB
最終ジャッジ日時 2023-08-12 09:14:49
合計ジャッジ時間 3,925 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,180 KB
testcase_01 AC 95 ms
82,336 KB
testcase_02 AC 87 ms
77,764 KB
testcase_03 AC 85 ms
78,392 KB
testcase_04 AC 95 ms
82,128 KB
testcase_05 AC 81 ms
76,528 KB
testcase_06 AC 87 ms
79,216 KB
testcase_07 AC 95 ms
82,640 KB
testcase_08 AC 89 ms
78,592 KB
testcase_09 AC 84 ms
77,276 KB
testcase_10 AC 87 ms
78,392 KB
testcase_11 AC 73 ms
71,304 KB
testcase_12 AC 74 ms
71,376 KB
testcase_13 AC 73 ms
71,084 KB
testcase_14 AC 74 ms
71,380 KB
testcase_15 AC 75 ms
71,272 KB
testcase_16 AC 75 ms
71,124 KB
testcase_17 AC 75 ms
71,144 KB
testcase_18 AC 98 ms
83,320 KB
testcase_19 AC 98 ms
83,360 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
def input(): return sys.stdin.readline().strip()
def mapint(): return list(map(int, input().split()))
sys.setrecursionlimit(10**9)

N = int(input())
if N==1:
    print(1)
elif N==3 or N==5:
    print(-1)
else:
    ans = [2, 4, *list(range(8, N, 2)), 6, 3]
    print(*ans[:-(-N//2)])
0