結果

問題 No.478 一般門松列列
ユーザー Naoyk1212
提出日時 2017-01-28 18:05:33
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 260 bytes
コンパイル時間 3,364 ms
コンパイル使用メモリ 158,032 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-23 21:14:24
合計ジャッジ時間 5,546 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19 WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
#define int long long

signed main(){
int n, k;
cin >> n >> k;
string str="2534";
int tmp = n-k-1;
for(int i = 0;i < n;i++){
if(i <= tmp)cout << str[i%4];
else cout << "0";
if(i < n -1)cout << " ";
}
cout << endl;
}
0