結果

問題 No.1528 Not 1
ユーザー pluto77pluto77
提出日時 2021-07-17 11:41:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 68 ms / 2,000 ms
コード長 211 bytes
コンパイル時間 140 ms
コンパイル使用メモリ 10,432 KB
実行使用メモリ 13,680 KB
最終ジャッジ日時 2023-09-21 04:35:57
合計ジャッジ時間 3,316 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,760 KB
testcase_01 AC 60 ms
12,908 KB
testcase_02 AC 30 ms
9,756 KB
testcase_03 AC 35 ms
10,304 KB
testcase_04 AC 59 ms
12,884 KB
testcase_05 AC 22 ms
8,676 KB
testcase_06 AC 44 ms
11,276 KB
testcase_07 AC 63 ms
13,144 KB
testcase_08 AC 36 ms
10,356 KB
testcase_09 AC 24 ms
9,072 KB
testcase_10 AC 39 ms
10,480 KB
testcase_11 AC 15 ms
7,756 KB
testcase_12 AC 15 ms
7,844 KB
testcase_13 AC 15 ms
7,808 KB
testcase_14 AC 15 ms
7,744 KB
testcase_15 AC 15 ms
7,672 KB
testcase_16 AC 15 ms
7,660 KB
testcase_17 AC 15 ms
7,732 KB
testcase_18 AC 68 ms
13,620 KB
testcase_19 AC 67 ms
13,680 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki1528
n=int(input())
if n==1 or n==2:
 print(1)
elif n==3 or n==5:
 print(-1)
elif n==4:
 print(2,4)
else:
 t=[2,4]
 for i in range(8,n+1,2):
  t.append(i)
 t.append(6)
 if n%2==1:
  t.append(3)
 print(*t)
 
0