結果

問題 No.1528 Not 1
ユーザー vwxyzvwxyz
提出日時 2023-07-16 10:56:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 184 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 11,660 KB
実行使用メモリ 15,476 KB
最終ジャッジ日時 2023-10-17 14:55:35
合計ジャッジ時間 2,432 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
10,008 KB
testcase_01 AC 69 ms
14,012 KB
testcase_02 AC 40 ms
11,260 KB
testcase_03 AC 45 ms
11,876 KB
testcase_04 AC 66 ms
14,560 KB
testcase_05 AC 33 ms
10,764 KB
testcase_06 AC 54 ms
12,628 KB
testcase_07 AC 69 ms
14,176 KB
testcase_08 AC 47 ms
12,096 KB
testcase_09 AC 36 ms
10,916 KB
testcase_10 AC 48 ms
12,100 KB
testcase_11 AC 27 ms
10,008 KB
testcase_12 AC 27 ms
10,008 KB
testcase_13 AC 26 ms
10,008 KB
testcase_14 AC 27 ms
10,008 KB
testcase_15 AC 26 ms
10,008 KB
testcase_16 AC 27 ms
10,008 KB
testcase_17 AC 27 ms
10,008 KB
testcase_18 AC 74 ms
14,812 KB
testcase_19 AC 76 ms
15,476 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
if N%2==0:
  print(*[a for a in range(2,N+1,2)])
else:
  if N==1:
    print(1)
  elif N in (3,5):
    print(-1)
  else:
    print(*[3]+[a for a in range(6,N+1,2)]+[2,4])
0