結果
問題 | No.1528 Not 1 |
ユーザー |
|
提出日時 | 2021-06-04 20:20:30 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 54 ms / 2,000 ms |
コード長 | 328 bytes |
コンパイル時間 | 506 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 69,888 KB |
最終ジャッジ日時 | 2024-11-19 08:43:37 |
合計ジャッジ時間 | 2,904 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 19 |
ソースコード
n = int(input())a = []if n%2 == 0:for i in range(1,n//2 + 1):a.append(str(2*i))print(" ".join(a))elif n == 1:print(1)elif n == 3 or n == 5:print(-1)else:a.append("3")a.append("6")for i in range(1,n//2 + 1):if i != 3:a.append(str(2*i))print(" ".join(a))