結果

問題 No.478 一般門松列列
ユーザー aaaaaaiuaaaaaaiu
提出日時 2019-08-17 15:23:11
言語 C++17
(gcc 13.2.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 325 bytes
コンパイル時間 2,398 ms
コンパイル使用メモリ 201,524 KB
実行使用メモリ 4,372 KB
最終ジャッジ日時 2023-10-25 00:46:40
合計ジャッジ時間 6,188 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,368 KB
testcase_01 WA -
testcase_02 AC 2 ms
4,368 KB
testcase_03 AC 1 ms
4,368 KB
testcase_04 AC 2 ms
4,368 KB
testcase_05 AC 2 ms
4,368 KB
testcase_06 AC 2 ms
4,368 KB
testcase_07 AC 2 ms
4,368 KB
testcase_08 AC 2 ms
4,368 KB
testcase_09 AC 2 ms
4,368 KB
testcase_10 AC 2 ms
4,368 KB
testcase_11 AC 3 ms
4,368 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main() {
    int kdmt[]={1,3,2,4};
    int n,k;
    cin>>n>>k;
    int a[n];
    for (int i=0;i<n;i++)
        a[i]=kdmt[i%4];
    for (int i=0;i<k;i++)
        a[i]=kdmt[(i+1)%4];
    for (int x:a)
        cout<<x<<' ';
    cout<<endl;
    return 0;
}
0