結果
問題 |
No.2567 A_1 > A_2 > ... > A_N
|
ユーザー |
![]() |
提出日時 | 2023-12-02 17:56:29 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 370 bytes |
コンパイル時間 | 127 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 20,480 KB |
最終ジャッジ日時 | 2024-09-26 21:19:51 |
合計ジャッジ時間 | 3,860 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | TLE * 1 -- * 15 |
ソースコード
T = int(input()) for _ in range(T): N,X = map(int,input().split()) if N*(N+1)//2 > X: print(-1) else: ans = [i for i in range(N,0,-1)] plus = (X - sum(ans))//N for i in range(N): ans[i] += plus ct = 0 while sum(ans) != X: ans[ct%N] += 1 ct += 1 print(*ans)