結果
問題 | No.1528 Not 1 |
ユーザー | moharan627 |
提出日時 | 2021-06-04 21:19:14 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 138 ms / 2,000 ms |
コード長 | 704 bytes |
コンパイル時間 | 322 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-19 11:56:09 |
合計ジャッジ時間 | 3,339 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 19 |
ソースコード
import sys INF = float('inf') MOD = 10**9 + 7 def solve(): def II(): return int(sys.stdin.readline()) def LI(): return list(map(int, sys.stdin.readline().split())) def LC(): return list(input()) def IC(): return [int(c) for c in input()] def MI(): return map(int, sys.stdin.readline().split()) N = II() if(N==1): print(1) exit() if(N==3 or N==5): print(-1) exit() if(N%2 == 0): for n in range(2,N+1,2): print(n," ",sep="",end="") print() else: for n in range(2,N+1,2): if(n == 6): continue print(n," ",sep="",end="") print(6,3) return solve()