結果

問題 No.478 一般門松列列
ユーザー dnish
提出日時 2017-07-10 13:11:55
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 211 bytes
コンパイル時間 1,656 ms
コンパイル使用メモリ 165,208 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-07 06:59:21
合計ジャッジ時間 6,505 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4 WA * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define REP(i,n,N) for(int i=(n);i<(int) N;i++)
using namespace std;

int main() {
	int n,k;
	cin>>n>>k;
	REP(i,0,k) cout<<"1 ";
	REP(i,1,n-k+1) cout<<i%2<<" ";
	cout<<endl;
	return 0;
}
0