結果

問題 No.478 一般門松列列
ユーザー convexineqconvexineq
提出日時 2021-02-05 06:52:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 90 ms / 2,000 ms
コード長 130 bytes
コンパイル時間 995 ms
コンパイル使用メモリ 86,316 KB
実行使用メモリ 77,212 KB
最終ジャッジ日時 2023-09-14 12:12:46
合計ジャッジ時間 5,628 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,236 KB
testcase_01 AC 71 ms
71,128 KB
testcase_02 AC 72 ms
71,064 KB
testcase_03 AC 71 ms
70,668 KB
testcase_04 AC 69 ms
71,156 KB
testcase_05 AC 71 ms
71,120 KB
testcase_06 AC 71 ms
71,144 KB
testcase_07 AC 70 ms
70,896 KB
testcase_08 AC 70 ms
70,668 KB
testcase_09 AC 70 ms
71,160 KB
testcase_10 AC 74 ms
71,156 KB
testcase_11 AC 90 ms
76,944 KB
testcase_12 AC 81 ms
76,940 KB
testcase_13 AC 84 ms
77,212 KB
testcase_14 AC 83 ms
77,148 KB
testcase_15 AC 84 ms
76,912 KB
testcase_16 AC 83 ms
76,388 KB
testcase_17 AC 84 ms
76,884 KB
testcase_18 AC 86 ms
76,432 KB
testcase_19 AC 84 ms
76,896 KB
testcase_20 AC 85 ms
76,436 KB
testcase_21 AC 82 ms
76,444 KB
testcase_22 AC 82 ms
76,536 KB
testcase_23 AC 84 ms
76,032 KB
testcase_24 AC 80 ms
76,076 KB
testcase_25 AC 84 ms
76,304 KB
testcase_26 AC 80 ms
76,412 KB
testcase_27 AC 80 ms
76,576 KB
testcase_28 AC 80 ms
76,184 KB
testcase_29 AC 78 ms
76,392 KB
testcase_30 AC 82 ms
76,264 KB
testcase_31 AC 82 ms
76,312 KB
testcase_32 AC 81 ms
76,032 KB
testcase_33 AC 82 ms
76,284 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k = map(int,input().split())
a = [0]*n
N = 10**6
for i in range(k+1,n):
    a[i] = N^a[i-1]
    if a[i] < N: a[i] += 1
print(*a)
0