結果

問題 No.2560 A_1 < A_2 < ... < A_N
ユーザー hirayuu_ychirayuu_yc
提出日時 2023-12-02 15:22:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 321 ms / 2,000 ms
コード長 258 bytes
コンパイル時間 282 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 88,172 KB
最終ジャッジ日時 2023-12-02 15:22:40
合計ジャッジ時間 3,847 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
53,460 KB
testcase_01 AC 73 ms
83,216 KB
testcase_02 AC 85 ms
86,084 KB
testcase_03 AC 75 ms
88,172 KB
testcase_04 AC 77 ms
87,972 KB
testcase_05 AC 82 ms
87,936 KB
testcase_06 AC 265 ms
76,212 KB
testcase_07 AC 298 ms
76,904 KB
testcase_08 AC 321 ms
77,232 KB
testcase_09 AC 309 ms
77,124 KB
testcase_10 AC 290 ms
76,888 KB
testcase_11 AC 45 ms
73,060 KB
testcase_12 AC 51 ms
75,596 KB
testcase_13 AC 47 ms
73,396 KB
testcase_14 AC 45 ms
72,764 KB
testcase_15 AC 55 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):
        X-=j+1
        ans.append(j+1)
    if len(ans)!=0 and ans[-1]>=X:
        print(-1)
    else:
        ans.append(X)
        print(*(ans))
0