結果

問題 No.2560 A_1 < A_2 < ... < A_N
ユーザー mymelochanmymelochan
提出日時 2023-12-02 14:37:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 173 ms / 2,000 ms
コード長 659 bytes
コンパイル時間 708 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 86,516 KB
最終ジャッジ日時 2023-12-02 14:37:58
合計ジャッジ時間 2,753 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
55,596 KB
testcase_01 AC 70 ms
81,676 KB
testcase_02 AC 76 ms
84,336 KB
testcase_03 AC 73 ms
84,444 KB
testcase_04 AC 78 ms
86,516 KB
testcase_05 AC 78 ms
85,476 KB
testcase_06 AC 136 ms
78,456 KB
testcase_07 AC 173 ms
78,452 KB
testcase_08 AC 138 ms
78,456 KB
testcase_09 AC 140 ms
78,324 KB
testcase_10 AC 148 ms
78,468 KB
testcase_11 AC 41 ms
55,596 KB
testcase_12 AC 45 ms
61,536 KB
testcase_13 AC 41 ms
55,596 KB
testcase_14 AC 40 ms
55,596 KB
testcase_15 AC 53 ms
64,432 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#############################################################

import sys
sys.setrecursionlimit(10**7)

from heapq import heappop,heappush
from collections import deque,defaultdict,Counter
from bisect import bisect_left, bisect_right
from itertools import product,combinations,permutations
from math import sin,cos
#from math import isqrt #DO NOT USE PyPy

ipt = sys.stdin.readline
iin = lambda :int(ipt())
lmin = lambda :list(map(int,ipt().split()))

#############################################################

for _ in range(iin()):
    N,X = lmin()
    if (N+1)*N//2 > X:
        print(-1)
    else:
        print(*list(list(range(1,N))+[X-N*(N-1)//2]))
0