結果

問題 No.478 一般門松列列
ユーザー rlangevinrlangevin
提出日時 2023-01-13 19:58:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 86 ms / 2,000 ms
コード長 158 bytes
コンパイル時間 688 ms
コンパイル使用メモリ 86,924 KB
実行使用メモリ 78,048 KB
最終ジャッジ日時 2023-08-26 01:52:40
合計ジャッジ時間 5,146 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,940 KB
testcase_01 AC 74 ms
72,000 KB
testcase_02 AC 73 ms
71,972 KB
testcase_03 AC 74 ms
71,976 KB
testcase_04 AC 73 ms
71,872 KB
testcase_05 AC 73 ms
71,888 KB
testcase_06 AC 73 ms
71,964 KB
testcase_07 AC 73 ms
72,088 KB
testcase_08 AC 72 ms
72,084 KB
testcase_09 AC 73 ms
71,960 KB
testcase_10 AC 73 ms
72,024 KB
testcase_11 AC 85 ms
77,872 KB
testcase_12 AC 84 ms
77,872 KB
testcase_13 AC 85 ms
77,840 KB
testcase_14 AC 86 ms
77,712 KB
testcase_15 AC 85 ms
77,904 KB
testcase_16 AC 82 ms
77,188 KB
testcase_17 AC 83 ms
77,564 KB
testcase_18 AC 83 ms
77,228 KB
testcase_19 AC 84 ms
78,048 KB
testcase_20 AC 86 ms
77,272 KB
testcase_21 AC 85 ms
77,240 KB
testcase_22 AC 84 ms
77,300 KB
testcase_23 AC 82 ms
77,272 KB
testcase_24 AC 81 ms
77,340 KB
testcase_25 AC 82 ms
77,312 KB
testcase_26 AC 80 ms
77,276 KB
testcase_27 AC 84 ms
77,288 KB
testcase_28 AC 83 ms
77,400 KB
testcase_29 AC 82 ms
77,224 KB
testcase_30 AC 83 ms
77,164 KB
testcase_31 AC 82 ms
77,440 KB
testcase_32 AC 82 ms
77,240 KB
testcase_33 AC 81 ms
77,196 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, K = map(int, input().split())
L = [1, 3, 2, 4] * (2 * 10 ** 4)
ans = list(range(K))
ans.extend(L[:N - K])
for i in range(K, N):
    ans[i] += K
print(*ans)
0