結果

問題 No.2560 A_1 < A_2 < ... < A_N
ユーザー miztommiztom
提出日時 2024-03-13 01:52:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 333 ms / 2,000 ms
コード長 133 bytes
コンパイル時間 368 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 82,988 KB
最終ジャッジ日時 2024-03-13 01:52:30
合計ジャッジ時間 4,899 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,332 KB
testcase_01 AC 74 ms
79,664 KB
testcase_02 AC 79 ms
82,116 KB
testcase_03 AC 74 ms
81,912 KB
testcase_04 AC 80 ms
82,960 KB
testcase_05 AC 80 ms
82,988 KB
testcase_06 AC 326 ms
76,892 KB
testcase_07 AC 307 ms
76,744 KB
testcase_08 AC 308 ms
76,768 KB
testcase_09 AC 333 ms
76,748 KB
testcase_10 AC 313 ms
77,148 KB
testcase_11 AC 38 ms
53,332 KB
testcase_12 AC 44 ms
59,336 KB
testcase_13 AC 39 ms
53,332 KB
testcase_14 AC 38 ms
53,332 KB
testcase_15 AC 47 ms
62,228 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

for i in range(int(input())):
    n,x=map(int,input().split())
    if n*n+n>x*2:print(-1)
    else:print(*range(1,n),x-sum(range(n)))
0