結果
| 問題 |
No.2560 A_1 < A_2 < ... < A_N
|
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2023-12-02 14:45:57 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 272 bytes |
| コンパイル時間 | 88 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 312,576 KB |
| 最終ジャッジ日時 | 2024-09-26 17:19:33 |
| 合計ジャッジ時間 | 3,767 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | TLE * 1 -- * 14 |
ソースコード
T = int(input())
for _ in range(T):
N,X = map(int, input().split())
n = N
ANS = []
i = 1
while n>1 or X>=i:
ANS.append(i)
X-=i
i+=1
n-=1
ANS[-1]+=X
if len(ANS)==N:
print(*ANS)
else:
print(-1)
H20