結果

問題 No.1528 Not 1
ユーザー 👑 H20H20
提出日時 2021-06-04 21:15:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 87 ms / 2,000 ms
コード長 258 bytes
コンパイル時間 185 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 86,144 KB
最終ジャッジ日時 2024-04-30 01:12:50
合計ジャッジ時間 2,900 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
51,584 KB
testcase_01 AC 85 ms
84,352 KB
testcase_02 AC 62 ms
69,632 KB
testcase_03 AC 64 ms
72,576 KB
testcase_04 AC 78 ms
83,840 KB
testcase_05 AC 58 ms
64,384 KB
testcase_06 AC 70 ms
77,824 KB
testcase_07 AC 81 ms
84,608 KB
testcase_08 AC 65 ms
72,832 KB
testcase_09 AC 59 ms
66,176 KB
testcase_10 AC 65 ms
74,368 KB
testcase_11 AC 40 ms
51,968 KB
testcase_12 AC 41 ms
51,712 KB
testcase_13 AC 40 ms
51,712 KB
testcase_14 AC 40 ms
51,584 KB
testcase_15 AC 41 ms
51,456 KB
testcase_16 AC 41 ms
51,840 KB
testcase_17 AC 41 ms
51,712 KB
testcase_18 AC 87 ms
86,144 KB
testcase_19 AC 82 ms
85,888 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