結果
| 問題 |
No.1528 Not 1
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-06-04 22:34:53 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 347 bytes |
| コンパイル時間 | 160 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 17,112 KB |
| 最終ジャッジ日時 | 2024-11-20 03:34:09 |
| 合計ジャッジ時間 | 2,931 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 18 WA * 1 |
ソースコード
def solve(N):
if N == 1 or 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()