結果
問題 | No.1528 Not 1 |
ユーザー | aaaaaaaaaa2230 |
提出日時 | 2021-06-04 20:14:56 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 74 ms / 2,000 ms |
コード長 | 282 bytes |
コンパイル時間 | 211 ms |
コンパイル使用メモリ | 82,104 KB |
実行使用メモリ | 85,912 KB |
最終ジャッジ日時 | 2024-11-19 08:20:26 |
合計ジャッジ時間 | 2,841 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 19 |
ソースコード
n = int(input()) if n == 1: print(1) exit() if n%2 == 0: ans = [i*2 for i in range(1,n//2+1)] else: if n <= 5: print(-1) exit() ans = [3,6] for i in range(1,n//2+1): if i == 3: continue ans.append(i*2) print(*ans)