結果
問題 | No.1376 Simple LPS Problem |
ユーザー |
![]() |
提出日時 | 2021-02-05 23:09:19 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 2,000 ms |
コード長 | 336 bytes |
コンパイル時間 | 183 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 52,480 KB |
最終ジャッジ日時 | 2024-07-02 14:25:15 |
合計ジャッジ時間 | 4,923 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 60 |
ソースコード
n,k = map(int,input().split()) s = "101100" if k >= 4: print(("0"*k+s*(n//6+2))[:n]) elif k == 3: if n <= 8: print("00010111"[:n]) else: print(-1) elif k == 2: if n <= 4: print("1100"[:n]) else: print(-1) elif k == 1: if n <= 2: print("10"[:n]) else: print(-1)