結果
問題 |
No.1528 Not 1
|
ユーザー |
![]() |
提出日時 | 2023-01-01 03:13:04 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 69 ms / 2,000 ms |
コード長 | 305 bytes |
コンパイル時間 | 312 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 85,760 KB |
最終ジャッジ日時 | 2024-11-27 00:01:09 |
合計ジャッジ時間 | 3,061 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 19 |
ソースコード
N = int(input()) if N == 1: print(1) elif N == 3 or N == 5: print(-1) elif N % 2: ans = [] for i in range(2, N, 2): if i != 6: ans.append(i) ans.extend([6, 3]) print(*ans) else: ans = [] for i in range(2, N + 1, 2): ans.append(i) print(*ans)