結果
| 問題 |
No.2560 A_1 < A_2 < ... < A_N
|
| コンテスト | |
| ユーザー |
Cecil
|
| 提出日時 | 2023-12-02 15:19:06 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 426 bytes |
| コンパイル時間 | 338 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 17,280 KB |
| 最終ジャッジ日時 | 2024-09-26 18:27:54 |
| 合計ジャッジ時間 | 2,922 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 10 RE * 5 |
ソースコード
t = int(input())
for _ in range(t):
n,x = map(int, input().split())
s = x
f = True
ans = [0]*n
for i in range(1, n):
#print(s, i)
if s > ans[i-2]:
ans[i-1] = i
s -= i
else:
f = False
if s > ans[-2]:
ans[-1] = s
s = 0
else:
f = False
#print(ans)
if f == True:
print(*ans)
else:
print(-1)
Cecil