結果

問題 No.2560 A_1 < A_2 < ... < A_N
ユーザー anastaanasta
提出日時 2024-01-11 14:45:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 230 bytes
コンパイル時間 192 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 9,984 KB
最終ジャッジ日時 2024-01-11 14:45:27
合計ジャッジ時間 6,266 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
9,856 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 586 ms
9,856 KB
testcase_07 AC 597 ms
9,856 KB
testcase_08 AC 584 ms
9,856 KB
testcase_09 AC 608 ms
9,856 KB
testcase_10 AC 601 ms
9,856 KB
testcase_11 AC 28 ms
9,856 KB
testcase_12 AC 31 ms
9,984 KB
testcase_13 AC 27 ms
9,856 KB
testcase_14 AC 27 ms
9,856 KB
testcase_15 AC 29 ms
9,984 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())

for _ in range(T):
    N, X = map(int,input().split())

    if (N + 1) * N / 2 <= X :
        for i in range(1, N):
            print(i,end=' ')
        print(int(X - (N - 1) * N / 2))
    else:
        print(-1)
0