結果

問題 No.2560 A_1 < A_2 < ... < A_N
ユーザー sA_3sA_3
提出日時 2023-12-02 15:01:36
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 304 bytes
コンパイル時間 213 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 77,288 KB
最終ジャッジ日時 2023-12-02 15:01:43
合計ジャッジ時間 3,175 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
59,504 KB
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 AC 267 ms
77,168 KB
testcase_07 AC 264 ms
77,280 KB
testcase_08 AC 275 ms
77,288 KB
testcase_09 AC 286 ms
77,280 KB
testcase_10 AC 255 ms
76,780 KB
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = 10000

acc = [1 for _ in range(N)]
for j in range(1,N):
    acc[j] = acc[j-1] + j + 1

T = int(input())
for _ in range(T):
    N,X = map(int,input().split())
    if acc[N-1] > X:
        print(-1)
    else:
        ans = [i for i in range(1,N+1)]
        ans[-1] += (X - acc[N-1])
        print(*ans)
0