結果
| 問題 | No.2560 A_1 < A_2 < ... < A_N |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-12-02 14:34:05 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 214 ms / 2,000 ms |
| コード長 | 169 bytes |
| 記録 | |
| コンパイル時間 | 253 ms |
| コンパイル使用メモリ | 85,760 KB |
| 実行使用メモリ | 86,392 KB |
| 最終ジャッジ日時 | 2026-04-13 18:40:12 |
| 合計ジャッジ時間 | 3,466 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 15 |
ソースコード
for _ in range(int(input())): n, x = map(int, input().split()) ans = list(range(1, n + 1)) if sum(ans) > x: print(-1) else: ans[-1] += x - sum(ans) print(*ans)