結果
問題 | No.2560 A_1 < A_2 < ... < A_N |
ユーザー |
![]() |
提出日時 | 2025-01-22 19:49:37 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 170 ms / 2,000 ms |
コード長 | 292 bytes |
コンパイル時間 | 1,913 ms |
コンパイル使用メモリ | 81,860 KB |
実行使用メモリ | 83,636 KB |
最終ジャッジ日時 | 2025-01-22 19:49:43 |
合計ジャッジ時間 | 5,545 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 15 |
ソースコード
import sysinput = sys.stdin.readlineT = int(input())for _ in range(T):N, X = map(int, input().split())if N == 1:print(X)continueans = list(range(1, N))ans.append(X - sum(ans))if ans[-1] <= ans[-2]:print(-1)else:print(*ans)