結果

問題 No.2560 A_1 < A_2 < ... < A_N
ユーザー takutaku
提出日時 2023-12-02 18:24:55
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 174 bytes
コンパイル時間 298 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 83,028 KB
最終ジャッジ日時 2023-12-02 18:24:59
合計ジャッジ時間 3,460 ms
ジャッジサーバーID
(参考情報)
judge14 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 65 ms
79,580 KB
testcase_02 AC 72 ms
82,076 KB
testcase_03 AC 68 ms
80,844 KB
testcase_04 AC 68 ms
81,508 KB
testcase_05 AC 74 ms
83,028 KB
testcase_06 AC 297 ms
76,768 KB
testcase_07 AC 266 ms
76,744 KB
testcase_08 AC 271 ms
76,896 KB
testcase_09 AC 264 ms
76,876 KB
testcase_10 AC 264 ms
76,632 KB
testcase_11 AC 39 ms
53,332 KB
testcase_12 AC 39 ms
59,196 KB
testcase_13 AC 37 ms
53,332 KB
testcase_14 AC 35 ms
53,332 KB
testcase_15 AC 43 ms
62,092 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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