結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
59,504 KB
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 AC 224 ms
84,264 KB
testcase_07 AC 202 ms
84,396 KB
testcase_08 AC 200 ms
84,140 KB
testcase_09 AC 198 ms
84,268 KB
testcase_10 AC 207 ms
84,308 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())
nx = [None for _ in range(T)]
for t in range(T):
    nx[t] = list(map(int,input().split()))
for j in range(T):
    N,X = nx[j][0],nx[j][1]
    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