結果
| 問題 |
No.1528 Not 1
|
| コンテスト | |
| ユーザー |
c-yan
|
| 提出日時 | 2021-06-06 01:47:13 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 97 ms / 2,000 ms |
| コード長 | 251 bytes |
| コンパイル時間 | 84 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 16,256 KB |
| 最終ジャッジ日時 | 2024-11-22 02:17:41 |
| 合計ジャッジ時間 | 2,702 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 19 |
ソースコード
N = int(input())
if N in [1, 2]:
print(1)
elif N in [3, 5]:
print(-1)
elif N == 4:
print(2, 4)
else:
t = [2, 4]
for i in range(8, N + 1, 2):
t.append(i)
t.append(6)
if N % 2 == 1:
t.append(3)
print(*t)
c-yan