結果

問題 No.2560 A_1 < A_2 < ... < A_N
ユーザー 𖧱𖦸𖥩𖥣𖥩𖥣
提出日時 2024-05-08 10:23:09
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 166 bytes
コンパイル時間 422 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-12-14 13:34:48
合計ジャッジ時間 6,126 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other WA * 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(i+1,end=" ")
		print(x-n*(n-1)//2)
0