結果

問題 No.1376 Simple LPS Problem
ユーザー ocvret_
提出日時 2021-02-05 22:29:35
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 470 bytes
コンパイル時間 1,552 ms
コンパイル使用メモリ 165,456 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-02 13:03:17
合計ジャッジ時間 4,649 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 48 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
// #include<atcoder/all>

using namespace std;
// using namespace atcoder;
using ll = long long;
using ull = unsigned long long;
using P = pair<int,int>;
#define rep(i,n) for(ll i = 0;i < (ll)n;i++)
#define ALL(x) (x).begin(),(x).end()
#define MOD 1000000007



int main(){
  
  int n,k;
  cin >> n >> k;
  if(k < (n+1)/2)cout << -1 << "\n";
  else {
    cout << string(k,'0');
    cout << string(n-k,'1');
    cout << "\n";
  }
  

  return 0;
}
0