結果

問題 No.2560 A_1 < A_2 < ... < A_N
ユーザー vwxyzvwxyz
提出日時 2024-02-12 04:24:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 584 ms / 2,000 ms
コード長 204 bytes
コンパイル時間 229 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 17,836 KB
最終ジャッジ日時 2024-02-12 04:24:46
合計ジャッジ時間 6,133 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
9,984 KB
testcase_01 AC 107 ms
15,428 KB
testcase_02 AC 118 ms
15,232 KB
testcase_03 AC 107 ms
16,768 KB
testcase_04 AC 122 ms
17,532 KB
testcase_05 AC 127 ms
17,836 KB
testcase_06 AC 554 ms
9,984 KB
testcase_07 AC 584 ms
9,984 KB
testcase_08 AC 543 ms
9,984 KB
testcase_09 AC 550 ms
9,984 KB
testcase_10 AC 547 ms
9,984 KB
testcase_11 AC 38 ms
11,496 KB
testcase_12 AC 49 ms
11,264 KB
testcase_13 AC 39 ms
11,648 KB
testcase_14 AC 37 ms
11,392 KB
testcase_15 AC 38 ms
11,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T=int(input())
for t in range(T):
	N,X=map(int,input().split())
	ans_lst=[i for i in range(1,N)]
	ans_lst.append(X-sum(ans_lst))
	if N>=2 and ans_lst[-2]>=ans_lst[-1]:
		print(-1)
	else:
		print(*ans_lst)
0