結果

問題 No.2560 A_1 < A_2 < ... < A_N
ユーザー 𖧱𖦸𖥩𖥣𖥩𖥣
提出日時 2024-05-08 10:23:47
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 599 ms / 2,000 ms
コード長 166 bytes
コンパイル時間 394 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-12-14 13:35:32
合計ジャッジ時間 5,820 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

for i in range(int(input())):
	n,x = map(int,input().split())
	if n*(n+1) > x*2:
		print(-1)
	else:
		for j in range(n-1):
			print(j+1,end=" ")
		print(x-n*(n-1)//2)
0