結果

問題 No.478 一般門松列列
ユーザー rpy3cpprpy3cpp
提出日時 2017-01-30 01:18:28
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 128 bytes
コンパイル時間 98 ms
コンパイル使用メモリ 10,720 KB
実行使用メモリ 8,940 KB
最終ジャッジ日時 2023-08-25 15:11:28
合計ジャッジ時間 3,392 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,960 KB
testcase_01 AC 16 ms
7,848 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 15 ms
7,904 KB
testcase_05 WA -
testcase_06 AC 15 ms
7,816 KB
testcase_07 AC 16 ms
7,848 KB
testcase_08 WA -
testcase_09 AC 15 ms
7,904 KB
testcase_10 AC 15 ms
7,808 KB
testcase_11 WA -
testcase_12 AC 24 ms
8,720 KB
testcase_13 AC 24 ms
8,784 KB
testcase_14 AC 24 ms
8,740 KB
testcase_15 AC 23 ms
8,800 KB
testcase_16 AC 19 ms
8,748 KB
testcase_17 AC 23 ms
8,720 KB
testcase_18 AC 20 ms
8,876 KB
testcase_19 AC 24 ms
8,940 KB
testcase_20 AC 22 ms
8,916 KB
testcase_21 AC 22 ms
8,788 KB
testcase_22 AC 19 ms
8,652 KB
testcase_23 AC 19 ms
8,704 KB
testcase_24 AC 20 ms
8,824 KB
testcase_25 AC 23 ms
8,788 KB
testcase_26 AC 17 ms
8,432 KB
testcase_27 AC 17 ms
8,500 KB
testcase_28 AC 16 ms
8,336 KB
testcase_29 AC 16 ms
8,384 KB
testcase_30 AC 20 ms
8,748 KB
testcase_31 AC 19 ms
8,752 KB
testcase_32 AC 18 ms
8,724 KB
testcase_33 AC 18 ms
8,716 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, k = map(int, input().split())
ans = [1, 4, 2, 3] * (n // 4) + [1, 4, 2, 3][:n % 4]
ans[-k:] = [ans[- k - 1]] * k
print(*ans)
0