結果

問題 No.478 一般門松列列
ユーザー 👑 rin204rin204
提出日時 2022-01-20 01:34:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 90 ms / 2,000 ms
コード長 271 bytes
コンパイル時間 478 ms
コンパイル使用メモリ 87,304 KB
実行使用メモリ 77,360 KB
最終ジャッジ日時 2023-08-15 08:18:32
合計ジャッジ時間 5,140 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
71,104 KB
testcase_01 AC 63 ms
71,128 KB
testcase_02 AC 62 ms
71,236 KB
testcase_03 AC 61 ms
71,084 KB
testcase_04 AC 62 ms
71,116 KB
testcase_05 AC 61 ms
70,840 KB
testcase_06 AC 64 ms
70,988 KB
testcase_07 AC 63 ms
70,964 KB
testcase_08 AC 66 ms
71,144 KB
testcase_09 AC 65 ms
71,004 KB
testcase_10 AC 65 ms
71,200 KB
testcase_11 AC 90 ms
77,112 KB
testcase_12 AC 75 ms
77,360 KB
testcase_13 AC 74 ms
77,184 KB
testcase_14 AC 72 ms
77,272 KB
testcase_15 AC 75 ms
77,068 KB
testcase_16 AC 73 ms
76,456 KB
testcase_17 AC 76 ms
77,196 KB
testcase_18 AC 79 ms
76,092 KB
testcase_19 AC 75 ms
76,960 KB
testcase_20 AC 72 ms
76,432 KB
testcase_21 AC 75 ms
76,300 KB
testcase_22 AC 72 ms
76,304 KB
testcase_23 AC 71 ms
76,356 KB
testcase_24 AC 71 ms
76,540 KB
testcase_25 AC 75 ms
76,436 KB
testcase_26 AC 70 ms
76,108 KB
testcase_27 AC 75 ms
76,260 KB
testcase_28 AC 71 ms
76,136 KB
testcase_29 AC 70 ms
76,172 KB
testcase_30 AC 73 ms
76,380 KB
testcase_31 AC 73 ms
76,372 KB
testcase_32 AC 70 ms
76,588 KB
testcase_33 AC 72 ms
76,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, k = map(int, input().split())

ans = []
for _ in range(k + 1):
    ans.append(10 ** 5)
    
r = 10 ** 9
l = 0
t = 0
for _ in range(k + 1, n):
    if t == 0:
        ans.append(r)
        r -= 1
    else:
        ans.append(l)
        l += 1
    t ^= 1
print(*ans)
    
0