結果

問題 No.1376 Simple LPS Problem
コンテスト
ユーザー 👑 Kazun
提出日時 2021-02-05 21:58:36
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 308 bytes
コンパイル時間 201 ms
コンパイル使用メモリ 82,228 KB
実行使用メモリ 52,352 KB
最終ジャッジ日時 2024-07-02 12:28:47
合計ジャッジ時間 7,053 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 44 WA * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K=map(int,input().split())
if K==1:
    if N==1:
        print("0")
    elif N==2:
        print("10")
    else:
        print(-1)
elif 2*K>N:
    if K==1:
        if N==1:
            print("0")
        else:
            print("10")
    else:
        print("0"+"1"*(K-2)+"0"+"0"*(N-K))
else:
    print(-1)
0