結果

問題 No.1376 Simple LPS Problem
コンテスト
ユーザー ocvret_
提出日時 2021-02-05 22:29:35
言語 C++14
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=c++14 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 470 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,273 ms
コンパイル使用メモリ 178,992 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2026-03-23 21:21:12
合計ジャッジ時間 4,661 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 48 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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