結果

問題 No.1528 Not 1
ユーザー nasutarou1341nasutarou1341
提出日時 2021-06-04 20:07:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 104 ms / 2,000 ms
コード長 313 bytes
コンパイル時間 626 ms
コンパイル使用メモリ 87,052 KB
実行使用メモリ 87,356 KB
最終ジャッジ日時 2023-08-12 08:41:23
合計ジャッジ時間 4,446 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,632 KB
testcase_01 AC 102 ms
85,568 KB
testcase_02 AC 87 ms
78,420 KB
testcase_03 AC 90 ms
79,148 KB
testcase_04 AC 98 ms
84,972 KB
testcase_05 AC 84 ms
76,708 KB
testcase_06 AC 96 ms
82,168 KB
testcase_07 AC 104 ms
85,888 KB
testcase_08 AC 90 ms
79,396 KB
testcase_09 AC 87 ms
77,436 KB
testcase_10 AC 92 ms
79,924 KB
testcase_11 AC 75 ms
71,408 KB
testcase_12 AC 73 ms
71,384 KB
testcase_13 AC 74 ms
71,436 KB
testcase_14 AC 71 ms
71,164 KB
testcase_15 AC 71 ms
71,428 KB
testcase_16 AC 71 ms
71,156 KB
testcase_17 AC 72 ms
71,348 KB
testcase_18 AC 99 ms
87,116 KB
testcase_19 AC 103 ms
87,356 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
M = -(-N // 2)

if N == 1:
  print(1)
  exit()

if N == 2:
  print(2)
  exit()

if N == 3:
  print(-1)
  exit()

if N == 4:
  print(2, 4)
  exit()

if N == 5:
  print(-1)
  exit()

L = [3, 6]
for i in range(2, N + 1, 2):
  if i == 6: continue
  L.append(i)
  if len(L) == M:
    break

print(*L)
0