結果

問題 No.1528 Not 1
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2021-06-26 19:35:07
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 47 ms / 2,000 ms
コード長 358 bytes
コンパイル時間 348 ms
コンパイル使用メモリ 10,916 KB
実行使用メモリ 20,740 KB
最終ジャッジ日時 2023-09-07 15:30:48
合計ジャッジ時間 2,444 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
13,084 KB
testcase_01 AC 44 ms
19,812 KB
testcase_02 AC 31 ms
15,440 KB
testcase_03 AC 34 ms
16,084 KB
testcase_04 AC 43 ms
19,568 KB
testcase_05 AC 29 ms
13,928 KB
testcase_06 AC 38 ms
17,504 KB
testcase_07 AC 45 ms
20,052 KB
testcase_08 AC 35 ms
16,192 KB
testcase_09 AC 31 ms
14,376 KB
testcase_10 AC 35 ms
16,532 KB
testcase_11 AC 15 ms
8,176 KB
testcase_12 AC 15 ms
8,144 KB
testcase_13 AC 16 ms
7,900 KB
testcase_14 AC 15 ms
8,224 KB
testcase_15 AC 15 ms
8,244 KB
testcase_16 AC 15 ms
8,284 KB
testcase_17 AC 15 ms
8,140 KB
testcase_18 AC 47 ms
20,700 KB
testcase_19 AC 47 ms
20,740 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
import math
if N <= 2:
  print(1)
elif N <= 3:
  print(-1)
elif N == 4:
  print(2,4)
elif N == 5:
  print(-1)
elif N == 6:
  print(2,4,6)
elif N == 7:
  print(3,6,2,4)
elif N == 8:
  print(2,4,6,8)
else:
  n = math.ceil(N/2)
  ans = [3,6,2,4]
  m2 = [2*i for i in range(4,10**5)]
  ans.extend(m2)
  print(" ".join([str(i) for i in ans[:n]]))
0