結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
59,504 KB
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 AC 300 ms
77,168 KB
testcase_07 AC 286 ms
77,280 KB
testcase_08 AC 294 ms
77,032 KB
testcase_09 AC 295 ms
77,280 KB
testcase_10 AC 283 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