結果

問題 No.478 一般門松列列
ユーザー tookunn_1213tookunn_1213
提出日時 2017-01-28 00:03:39
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 22 ms / 2,000 ms
コード長 179 bytes
コンパイル時間 98 ms
コンパイル使用メモリ 10,756 KB
実行使用メモリ 9,736 KB
最終ジャッジ日時 2023-08-25 11:12:10
合計ジャッジ時間 2,566 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,904 KB
testcase_01 AC 16 ms
7,820 KB
testcase_02 AC 16 ms
7,796 KB
testcase_03 AC 16 ms
7,828 KB
testcase_04 AC 16 ms
7,784 KB
testcase_05 AC 16 ms
7,824 KB
testcase_06 AC 16 ms
7,804 KB
testcase_07 AC 16 ms
7,856 KB
testcase_08 AC 16 ms
7,852 KB
testcase_09 AC 16 ms
7,776 KB
testcase_10 AC 15 ms
7,772 KB
testcase_11 AC 22 ms
9,656 KB
testcase_12 AC 21 ms
9,736 KB
testcase_13 AC 21 ms
9,732 KB
testcase_14 AC 21 ms
9,560 KB
testcase_15 AC 21 ms
9,488 KB
testcase_16 AC 17 ms
8,648 KB
testcase_17 AC 21 ms
9,540 KB
testcase_18 AC 19 ms
9,040 KB
testcase_19 AC 21 ms
9,596 KB
testcase_20 AC 19 ms
9,364 KB
testcase_21 AC 20 ms
9,200 KB
testcase_22 AC 18 ms
8,740 KB
testcase_23 AC 17 ms
8,760 KB
testcase_24 AC 19 ms
9,020 KB
testcase_25 AC 20 ms
9,384 KB
testcase_26 AC 16 ms
8,352 KB
testcase_27 AC 17 ms
8,164 KB
testcase_28 AC 16 ms
8,360 KB
testcase_29 AC 16 ms
7,792 KB
testcase_30 AC 18 ms
9,008 KB
testcase_31 AC 18 ms
8,824 KB
testcase_32 AC 17 ms
8,556 KB
testcase_33 AC 17 ms
8,628 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K = map(int,input().split())
x = [1,3,2,4]
a = [x[i%4] for i in range(N-K)]
p = 0 if N-K == 0 else a[N-K-1]
for i in range(K):
	a.append(p)
print(' '.join([str(s) for s in a]))
0