結果

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

ソースコード

diff #

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <iomanip>
#include <cmath>
#include <stdio.h>
#include <queue>
#include <deque>
#include <cstdio>
#include <set>
#include <map>
#include <bitset>
#include <stack>
#include <cctype>
using namespace std;
int main() {
	int n, k;
	cin >> n >> k;
	if ((n + k - 1) / k <= 2) {
		for (int i = 0; i < k; i++) {
			cout << 0;
		}
		for (int i = 0; i < n - k; i++) {
			cout << 1;
		}
		cout << endl;
	}
	else {
		cout << -1 << endl;
	}
}

0