結果

問題 No.2560 A_1 < A_2 < ... < A_N
ユーザー anonymouslyanonymously
提出日時 2023-12-02 15:58:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 521 ms / 2,000 ms
コード長 152 bytes
コンパイル時間 216 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 15,772 KB
最終ジャッジ日時 2023-12-02 15:58:19
合計ジャッジ時間 4,528 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
9,984 KB
testcase_01 AC 94 ms
13,896 KB
testcase_02 AC 117 ms
14,464 KB
testcase_03 AC 92 ms
15,772 KB
testcase_04 AC 105 ms
15,052 KB
testcase_05 AC 114 ms
15,360 KB
testcase_06 AC 474 ms
9,984 KB
testcase_07 AC 472 ms
9,984 KB
testcase_08 AC 472 ms
9,984 KB
testcase_09 AC 498 ms
9,984 KB
testcase_10 AC 521 ms
9,984 KB
testcase_11 AC 27 ms
9,984 KB
testcase_12 AC 25 ms
10,112 KB
testcase_13 AC 25 ms
10,112 KB
testcase_14 AC 25 ms
9,984 KB
testcase_15 AC 26 ms
10,112 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T=int(input())
for _ in range(T):
	n,x=map(int,input().split())
	S=n*(n+1)//2
	if x<S:
		print(-1)
	else:
		print(*[i for i in range(1,n)],x-n*(n-1)//2)
0