結果

問題 No.2560 A_1 < A_2 < ... < A_N
ユーザー superzugansuperzugan
提出日時 2024-02-10 04:03:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 579 ms / 2,000 ms
コード長 178 bytes
コンパイル時間 274 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 15,644 KB
最終ジャッジ日時 2024-02-10 04:03:35
合計ジャッジ時間 6,504 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
9,984 KB
testcase_01 AC 109 ms
13,644 KB
testcase_02 AC 120 ms
14,296 KB
testcase_03 AC 108 ms
15,644 KB
testcase_04 AC 126 ms
14,936 KB
testcase_05 AC 128 ms
15,152 KB
testcase_06 AC 563 ms
9,984 KB
testcase_07 AC 542 ms
9,984 KB
testcase_08 AC 579 ms
9,984 KB
testcase_09 AC 565 ms
9,984 KB
testcase_10 AC 574 ms
9,984 KB
testcase_11 AC 33 ms
9,984 KB
testcase_12 AC 36 ms
10,112 KB
testcase_13 AC 33 ms
10,112 KB
testcase_14 AC 35 ms
9,984 KB
testcase_15 AC 35 ms
10,112 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
def zen(x,y):
	ans=sum(range(1,x))
	if x<=y-ans:
		return list(range(1,x))+[y-ans]
	return [-1]
for _ in range(n):
	a,b=map(int,input().split())
	print(*zen(a,b))
0