結果

問題 No.1528 Not 1
コンテスト
ユーザー lemondo
提出日時 2021-06-04 20:21:17
言語 PyPy3
(7.3.23 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 42 ms / 2,000 ms
+ 10µs
コード長 293 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 75 ms
コンパイル使用メモリ 81,544 KB
実行使用メモリ 88,948 KB
最終ジャッジ日時 2026-09-26 14:38:00
合計ジャッジ時間 2,331 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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