結果

問題 No.1376 Simple LPS Problem
ユーザー mkawa2mkawa2
提出日時 2021-02-05 23:20:12
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 916 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 10,968 KB
実行使用メモリ 8,580 KB
最終ジャッジ日時 2023-09-15 10:52:21
合計ジャッジ時間 5,864 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,804 KB
testcase_01 AC 16 ms
7,816 KB
testcase_02 AC 16 ms
7,800 KB
testcase_03 AC 16 ms
7,976 KB
testcase_04 AC 17 ms
7,832 KB
testcase_05 AC 16 ms
7,928 KB
testcase_06 AC 16 ms
7,812 KB
testcase_07 AC 16 ms
7,872 KB
testcase_08 AC 16 ms
7,772 KB
testcase_09 WA -
testcase_10 AC 16 ms
7,804 KB
testcase_11 AC 16 ms
7,804 KB
testcase_12 AC 16 ms
7,856 KB
testcase_13 WA -
testcase_14 AC 16 ms
7,828 KB
testcase_15 AC 17 ms
7,864 KB
testcase_16 AC 16 ms
7,956 KB
testcase_17 AC 15 ms
7,780 KB
testcase_18 WA -
testcase_19 AC 16 ms
7,936 KB
testcase_20 AC 16 ms
7,772 KB
testcase_21 AC 16 ms
7,960 KB
testcase_22 AC 16 ms
7,820 KB
testcase_23 AC 16 ms
7,812 KB
testcase_24 AC 16 ms
7,784 KB
testcase_25 AC 16 ms
7,800 KB
testcase_26 AC 15 ms
7,804 KB
testcase_27 AC 16 ms
7,828 KB
testcase_28 AC 16 ms
7,828 KB
testcase_29 AC 16 ms
7,768 KB
testcase_30 AC 16 ms
7,868 KB
testcase_31 AC 16 ms
7,936 KB
testcase_32 AC 16 ms
7,776 KB
testcase_33 AC 16 ms
7,796 KB
testcase_34 AC 16 ms
7,864 KB
testcase_35 AC 17 ms
7,776 KB
testcase_36 AC 16 ms
7,800 KB
testcase_37 AC 16 ms
7,928 KB
testcase_38 AC 16 ms
7,976 KB
testcase_39 AC 17 ms
7,772 KB
testcase_40 AC 16 ms
7,816 KB
testcase_41 AC 16 ms
7,936 KB
testcase_42 WA -
testcase_43 AC 16 ms
8,516 KB
testcase_44 AC 16 ms
7,868 KB
testcase_45 WA -
testcase_46 WA -
testcase_47 WA -
testcase_48 AC 17 ms
8,244 KB
testcase_49 WA -
testcase_50 WA -
testcase_51 AC 16 ms
8,580 KB
testcase_52 WA -
testcase_53 WA -
testcase_54 WA -
testcase_55 AC 16 ms
7,792 KB
testcase_56 AC 16 ms
7,752 KB
testcase_57 AC 16 ms
7,836 KB
testcase_58 AC 16 ms
8,296 KB
testcase_59 AC 16 ms
8,284 KB
testcase_60 AC 16 ms
7,932 KB
testcase_61 AC 16 ms
7,860 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

sys.setrecursionlimit(10**6)
int1 = lambda x: int(x)-1
p2D = lambda x: print(*x, sep="\n")
def II(): return int(sys.stdin.buffer.readline())
def MI(): return map(int, sys.stdin.buffer.readline().split())
def MI1(): return map(int1, sys.stdin.buffer.readline().split())
def LI(): return list(map(int, sys.stdin.buffer.readline().split()))
def LI1(): return list(map(int1, sys.stdin.buffer.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def BI(): return sys.stdin.buffer.readline().rstrip()
def SI(): return sys.stdin.buffer.readline().rstrip().decode()
# dij = [(0, 1), (-1, 0), (0, -1), (1, 0)]
dij = [[(-1, 0), (1, 0)], [(0, -1), (0, 1)]]
inf = 10**16
# md = 998244353
md = 10**9+7

n,k=MI()

if n==1:
    print(0)
elif n==2:
    if k==1:print(10)
    else:print(11)
elif k==1 or k<(n-1)//2:
    print(-1)
else:
    ans="0"*k+"1"+"0"+"1"*(n-k-2)
    print(ans[:n])
0