結果

問題 No.2560 A_1 < A_2 < ... < A_N
ユーザー kemunikukemuniku
提出日時 2023-12-02 14:42:02
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 248 bytes
コンパイル時間 562 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 88,172 KB
最終ジャッジ日時 2023-12-02 14:42:12
合計ジャッジ時間 2,413 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
53,460 KB
testcase_01 AC 72 ms
83,224 KB
testcase_02 AC 77 ms
86,096 KB
testcase_03 AC 74 ms
88,172 KB
testcase_04 AC 77 ms
87,972 KB
testcase_05 AC 81 ms
87,944 KB
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 AC 43 ms
73,060 KB
testcase_12 AC 51 ms
75,596 KB
testcase_13 AC 44 ms
73,396 KB
testcase_14 AC 43 ms
72,764 KB
testcase_15 AC 52 ms
76,252 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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