結果

問題 No.1528 Not 1
ユーザー showtamushowtamu
提出日時 2021-06-04 20:50:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 395 bytes
コンパイル時間 70 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 20,352 KB
最終ジャッジ日時 2024-04-30 00:32:58
合計ジャッジ時間 3,539 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 WA -
testcase_05 WA -
testcase_06 RE -
testcase_07 RE -
testcase_08 WA -
testcase_09 RE -
testcase_10 RE -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#B   
n=int(input())
if n==1:
    print(-1)
elif n==2:
    print(2)
elif n==3:
    print(-1)
elif n==5:
    print(-1)
a=int(n//2)
a+=1
s=[]
if n%2!=0:
    for i in range(1,a):
        c=2*i
        s.append(c)
else:
    for i in range(1,a):
        d=2*i
        s.append(c)
    s.remove(6)
    s.append(6)
    s.append(3)
s=[str(p) for p in s]
s=' '.join(s)
t = s.replace(' ', ' ')
print(t)    
0