結果

問題 No.478 一般門松列列
ユーザー tookunn_1213tookunn_1213
提出日時 2017-01-27 22:44:02
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 167 bytes
コンパイル時間 329 ms
コンパイル使用メモリ 10,624 KB
実行使用メモリ 10,460 KB
最終ジャッジ日時 2023-08-25 04:17:31
合計ジャッジ時間 4,098 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,840 KB
testcase_01 AC 15 ms
7,784 KB
testcase_02 WA -
testcase_03 AC 16 ms
7,812 KB
testcase_04 AC 16 ms
7,820 KB
testcase_05 WA -
testcase_06 AC 16 ms
7,924 KB
testcase_07 AC 16 ms
7,880 KB
testcase_08 AC 15 ms
7,868 KB
testcase_09 WA -
testcase_10 AC 16 ms
7,872 KB
testcase_11 AC 27 ms
10,416 KB
testcase_12 AC 21 ms
10,460 KB
testcase_13 AC 25 ms
10,368 KB
testcase_14 WA -
testcase_15 AC 22 ms
10,132 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 22 ms
9,604 KB
testcase_22 AC 18 ms
9,100 KB
testcase_23 AC 20 ms
9,040 KB
testcase_24 AC 19 ms
9,500 KB
testcase_25 AC 20 ms
9,856 KB
testcase_26 AC 17 ms
8,260 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 17 ms
8,260 KB
testcase_30 AC 20 ms
9,272 KB
testcase_31 WA -
testcase_32 AC 17 ms
8,732 KB
testcase_33 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K = map(int,input().split())
x = [i for i in range(N)]
i,k = 0,0
while i < N - K - 2:
	f = x[i+1]
	x[i+1] = x[i]
	x[i] = f
	i+=2
print(' '.join([str(i) for i in x]))
0