結果

問題 No.1528 Not 1
ユーザー kozykozy
提出日時 2021-06-04 20:04:31
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 251 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 16,384 KB
最終ジャッジ日時 2024-04-29 23:00:11
合計ジャッジ時間 2,969 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
10,752 KB
testcase_01 AC 94 ms
15,488 KB
testcase_02 AC 51 ms
12,288 KB
testcase_03 AC 59 ms
12,928 KB
testcase_04 AC 101 ms
15,488 KB
testcase_05 AC 42 ms
11,392 KB
testcase_06 AC 74 ms
13,952 KB
testcase_07 AC 98 ms
15,744 KB
testcase_08 AC 65 ms
13,184 KB
testcase_09 AC 44 ms
11,648 KB
testcase_10 AC 63 ms
13,312 KB
testcase_11 WA -
testcase_12 AC 29 ms
10,880 KB
testcase_13 AC 30 ms
10,752 KB
testcase_14 AC 31 ms
10,752 KB
testcase_15 AC 30 ms
10,752 KB
testcase_16 AC 30 ms
10,752 KB
testcase_17 AC 31 ms
10,624 KB
testcase_18 AC 107 ms
16,256 KB
testcase_19 AC 114 ms
16,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
L=list()
if N==1 or N==3 or N==5:
  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