結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
53,460 KB
testcase_01 AC 76 ms
84,272 KB
testcase_02 AC 79 ms
87,244 KB
testcase_03 AC 74 ms
90,044 KB
testcase_04 AC 76 ms
90,376 KB
testcase_05 AC 81 ms
89,352 KB
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 AC 44 ms
73,060 KB
testcase_12 AC 56 ms
75,596 KB
testcase_13 AC 44 ms
73,396 KB
testcase_14 AC 44 ms
72,764 KB
testcase_15 AC 54 ms
76,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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