結果

問題 No.1528 Not 1
ユーザー googol_S0googol_S0
提出日時 2021-06-04 21:01:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 92 ms / 2,000 ms
コード長 223 bytes
コンパイル時間 288 ms
コンパイル使用メモリ 86,524 KB
実行使用メモリ 86,720 KB
最終ジャッジ日時 2023-08-12 10:36:44
合計ジャッジ時間 3,610 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
70,956 KB
testcase_01 AC 85 ms
80,668 KB
testcase_02 AC 72 ms
77,264 KB
testcase_03 AC 76 ms
77,364 KB
testcase_04 AC 90 ms
85,140 KB
testcase_05 AC 71 ms
76,180 KB
testcase_06 AC 80 ms
77,896 KB
testcase_07 AC 85 ms
80,868 KB
testcase_08 AC 78 ms
79,328 KB
testcase_09 AC 72 ms
76,600 KB
testcase_10 AC 75 ms
77,724 KB
testcase_11 AC 64 ms
70,952 KB
testcase_12 AC 68 ms
71,076 KB
testcase_13 AC 62 ms
70,752 KB
testcase_14 AC 66 ms
71,228 KB
testcase_15 AC 65 ms
70,912 KB
testcase_16 AC 63 ms
70,760 KB
testcase_17 AC 66 ms
70,752 KB
testcase_18 AC 87 ms
81,316 KB
testcase_19 AC 92 ms
86,720 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
if N==1:
  print(1)
  exit()
if N&1==0:
  print(*list(range(2,N+1,2)))
  exit()
if N==3 or N==5:
  print(-1)
  exit()
X=[]
for i in range(2,N+1,2):
  if i!=6:
    X.append(i)
X.append(6)
X.append(3)
print(*X)
0