結果

問題 No.1528 Not 1
ユーザー kozykozy
提出日時 2021-06-04 20:05:56
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 272 bytes
コンパイル時間 892 ms
コンパイル使用メモリ 10,656 KB
実行使用メモリ 13,700 KB
最終ジャッジ日時 2023-08-12 08:36:56
合計ジャッジ時間 2,970 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,768 KB
testcase_01 AC 66 ms
12,876 KB
testcase_02 AC 33 ms
9,868 KB
testcase_03 AC 39 ms
10,388 KB
testcase_04 AC 71 ms
12,932 KB
testcase_05 AC 24 ms
8,924 KB
testcase_06 AC 49 ms
11,352 KB
testcase_07 AC 67 ms
13,108 KB
testcase_08 AC 43 ms
10,440 KB
testcase_09 AC 26 ms
9,248 KB
testcase_10 AC 41 ms
10,704 KB
testcase_11 AC 16 ms
8,188 KB
testcase_12 AC 16 ms
8,076 KB
testcase_13 AC 16 ms
8,188 KB
testcase_14 AC 15 ms
7,800 KB
testcase_15 AC 15 ms
7,908 KB
testcase_16 AC 16 ms
7,884 KB
testcase_17 AC 17 ms
7,852 KB
testcase_18 AC 73 ms
13,588 KB
testcase_19 AC 80 ms
13,700 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
L=list()
if N==3 or N==5:
  print(-1)
  exit()
if N==1:
  print(1)
  exit()
if N%2==0:
  for i in range(N//2):
    L.append(2*(i+1))
  print(*L)
else:
  for i in range(N//2):
    if 2*(i+1)!=6:
      L.append(2*(i+1))
  L.append(6)
  L.append(3)
  print(*L)
0