結果

問題 No.1528 Not 1
ユーザー 👑 H20H20
提出日時 2021-06-04 21:15:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 100 ms / 2,000 ms
コード長 258 bytes
コンパイル時間 399 ms
コンパイル使用メモリ 87,116 KB
実行使用メモリ 87,096 KB
最終ジャッジ日時 2023-08-12 11:11:17
合計ジャッジ時間 4,188 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,296 KB
testcase_01 AC 99 ms
85,496 KB
testcase_02 AC 83 ms
78,032 KB
testcase_03 AC 84 ms
78,964 KB
testcase_04 AC 99 ms
84,556 KB
testcase_05 AC 80 ms
76,512 KB
testcase_06 AC 91 ms
81,852 KB
testcase_07 AC 98 ms
85,760 KB
testcase_08 AC 85 ms
79,228 KB
testcase_09 AC 82 ms
76,888 KB
testcase_10 AC 86 ms
79,656 KB
testcase_11 AC 71 ms
71,008 KB
testcase_12 AC 70 ms
71,092 KB
testcase_13 AC 70 ms
71,188 KB
testcase_14 AC 71 ms
71,224 KB
testcase_15 AC 69 ms
70,992 KB
testcase_16 AC 68 ms
71,388 KB
testcase_17 AC 70 ms
70,900 KB
testcase_18 AC 99 ms
87,096 KB
testcase_19 AC 100 ms
86,868 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
elif N==6:
    print(2,4,6)
else:
    ANS = [3,6]
    for i in range(2,N,2):
        if i==6:
            continue
        ANS.append(i)
    print(*ANS)
0