結果

問題 No.1528 Not 1
ユーザー moharan627moharan627
提出日時 2021-06-04 21:19:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 95 ms / 2,000 ms
コード長 704 bytes
コンパイル時間 156 ms
コンパイル使用メモリ 10,876 KB
実行使用メモリ 8,480 KB
最終ジャッジ日時 2023-08-12 11:19:23
合計ジャッジ時間 2,944 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,836 KB
testcase_01 AC 84 ms
8,400 KB
testcase_02 AC 38 ms
8,292 KB
testcase_03 AC 46 ms
8,480 KB
testcase_04 AC 83 ms
8,332 KB
testcase_05 AC 26 ms
8,320 KB
testcase_06 AC 61 ms
8,424 KB
testcase_07 AC 87 ms
8,360 KB
testcase_08 AC 49 ms
8,440 KB
testcase_09 AC 30 ms
8,364 KB
testcase_10 AC 50 ms
8,424 KB
testcase_11 AC 16 ms
8,236 KB
testcase_12 AC 15 ms
8,204 KB
testcase_13 AC 16 ms
8,200 KB
testcase_14 AC 16 ms
7,740 KB
testcase_15 AC 15 ms
7,864 KB
testcase_16 AC 16 ms
7,884 KB
testcase_17 AC 16 ms
7,744 KB
testcase_18 AC 95 ms
8,292 KB
testcase_19 AC 95 ms
8,472 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
INF = float('inf')
MOD = 10**9 + 7
def solve():
    def II(): return int(sys.stdin.readline())
    def LI(): return list(map(int, sys.stdin.readline().split()))
    def LC(): return list(input())
    def IC(): return [int(c) for c in input()]
    def MI(): return map(int, sys.stdin.readline().split())
    N = II()
    if(N==1):
        print(1)
        exit()
    if(N==3 or N==5):
        print(-1)
        exit()
    if(N%2 == 0):
        for n in range(2,N+1,2):
            print(n," ",sep="",end="")
        print()
    else:
        for n in range(2,N+1,2):
            if(n == 6):
                continue
            print(n," ",sep="",end="")
        print(6,3)

    return
solve()
0