結果
| 問題 | No.2560 A_1 < A_2 < ... < A_N |
| コンテスト | |
| ユーザー |
かもめのうで
|
| 提出日時 | 2023-12-02 15:06:32 |
| 言語 | PyPy3 (7.3.23 + ac-library) |
| 結果 |
AC
不安定
|
| 実行時間 | 157 ms / 2,000 ms |
| + 529µs | |
| コード長 | 384 bytes |
| 記録 | |
| コンパイル時間 | 242 ms |
| コンパイル使用メモリ | 95,812 KB |
| 実行使用メモリ | 100,220 KB |
| 最終ジャッジ日時 | 2026-09-05 00:59:41 |
| 合計ジャッジ時間 | 4,371 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 15 |
ソースコード
t = int(input())
N = []
X = []
for _ in range(t):
n, x = map(int, input().split())
N.append(n)
X.append(x)
for j in range(t):
n = N[j]
x = X[j]
if n == 1:
print(x)
continue
ans = []
for i in range(1, n):
ans.append(i)
sum_ans = sum(ans)
if x-sum_ans <= ans[-1]:
print(-1)
else:
print(*ans, x-sum_ans)
かもめのうで