結果

問題 No.1528 Not 1
ユーザー yakeshibayakeshiba
提出日時 2021-06-09 21:01:25
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 660 bytes
コンパイル時間 402 ms
コンパイル使用メモリ 86,984 KB
実行使用メモリ 86,988 KB
最終ジャッジ日時 2023-08-19 07:02:56
合計ジャッジ時間 4,296 ms
ジャッジサーバーID
(参考情報)
judge9 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,284 KB
testcase_01 AC 97 ms
85,628 KB
testcase_02 AC 86 ms
78,412 KB
testcase_03 AC 85 ms
79,244 KB
testcase_04 AC 96 ms
85,156 KB
testcase_05 AC 80 ms
76,628 KB
testcase_06 AC 92 ms
81,928 KB
testcase_07 AC 98 ms
85,700 KB
testcase_08 AC 84 ms
79,416 KB
testcase_09 AC 84 ms
77,344 KB
testcase_10 AC 85 ms
79,840 KB
testcase_11 WA -
testcase_12 AC 70 ms
71,580 KB
testcase_13 AC 71 ms
71,316 KB
testcase_14 AC 71 ms
71,504 KB
testcase_15 AC 71 ms
71,244 KB
testcase_16 AC 71 ms
71,376 KB
testcase_17 AC 72 ms
71,288 KB
testcase_18 AC 99 ms
86,988 KB
testcase_19 AC 99 ms
86,908 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ans = []
if n < 10:
    if n%2 == 0:
        for i in range(2,n+1,2):
            ans.append(i)
    else:
        if n <= 5:
            print(-1)
            exit()
        else:
            ans.append(3)
            ans.append(6)
            for i in range(2,n,2):
                if len(ans) == -(-n//2):
                    break
                if i == 6:
                    continue
                ans.append(i)
    print(*ans)
elif n >= 10:
    ans.append(5)
    ans.append(10)
    for i in range(2,n,2):
        if len(ans) == -(-n//2):
            break
        if i == 10:
            continue
        ans.append(i)
    print(*ans)
0