結果
| 問題 |
No.478 一般門松列列
|
| コンテスト | |
| ユーザー |
dnish
|
| 提出日時 | 2017-07-10 13:13:39 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 234 bytes |
| コンパイル時間 | 1,613 ms |
| コンパイル使用メモリ | 166,344 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-07 06:59:45 |
| 合計ジャッジ時間 | 6,983 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 34 |
ソースコード
#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;
int a[]={1,3,2,4};
REP(i,0,k) cout<<"1 ";
REP(i,0,n-k+1) cout<<a[i%4]<<" ";
cout<<endl;
return 0;
}
dnish