結果

問題 No.2560 A_1 < A_2 < ... < A_N
コンテスト
ユーザー くきみかん
提出日時 2023-12-02 15:06:06
言語 Python3
(3.14.2 + numpy 2.4.0 + scipy 1.16.3)
結果
RE  
実行時間 -
コード長 322 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 254 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 821,120 KB
最終ジャッジ日時 2024-09-26 18:03:26
合計ジャッジ時間 3,576 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other RE * 5 MLE * 1 -- * 9
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import itertools
t = int(input())
for _ in range(t):
    n,x = map(int, input().split())
    c = list(itertools.combinations(range(1,x-2), n))
    if len(c) == 0:
        print(-1)
    else:
        for i in c:
            if sum(i) == x:
                print(*i)
                break
        else:
            print(-1)
0