結果
問題 |
No.1528 Not 1
|
ユーザー |
|
提出日時 | 2021-06-04 22:37:20 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 88 ms / 2,000 ms |
コード長 | 372 bytes |
コンパイル時間 | 269 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 17,152 KB |
最終ジャッジ日時 | 2024-11-20 04:05:25 |
合計ジャッジ時間 | 2,884 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 19 |
ソースコード
def solve(N): if N == 1: return [1] if N == 3 or N == 5: return [-1] if N%2 == 0: return list(range(2, N+1, 2)) res = [2, 4] + list(range(8, N, 2)) + [6, 3] return res import sys input = sys.stdin.readline def main(): N = int(input()) res = solve(N) print(*res, sep = " ") if __name__ == "__main__": main()