結果

問題 No.2560 A_1 < A_2 < ... < A_N
ユーザー n_nan_na
提出日時 2024-01-02 09:17:49
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 262 bytes
コンパイル時間 406 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 88,172 KB
最終ジャッジ日時 2024-01-02 09:17:52
合計ジャッジ時間 2,876 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,460 KB
testcase_01 AC 82 ms
83,224 KB
testcase_02 AC 83 ms
86,092 KB
testcase_03 AC 77 ms
88,172 KB
testcase_04 AC 82 ms
87,972 KB
testcase_05 AC 85 ms
87,940 KB
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 AC 50 ms
73,724 KB
testcase_12 AC 56 ms
75,620 KB
testcase_13 AC 51 ms
74,060 KB
testcase_14 AC 49 ms
73,428 KB
testcase_15 AC 59 ms
76,276 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())

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

    
0