結果
問題 |
No.2567 A_1 > A_2 > ... > A_N
|
ユーザー |
|
提出日時 | 2023-12-02 16:01:01 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 370 bytes |
コンパイル時間 | 224 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 86,912 KB |
最終ジャッジ日時 | 2024-09-26 19:41:17 |
合計ジャッジ時間 | 3,031 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 1 WA * 15 |
ソースコード
import sys input = lambda: sys.stdin.readline()[:-1] sys.setrecursionlimit(1000000) t = int(input()) for i in range(t): n, x = map(int, input().split()) p = x - (n+1)*n//2 if p < 0: print(-1) else: taseru = p//n amari = 1+p%n #print(p, taseru, amari) print(*[i+taseru for i in range(2, n+1)][::-1], amari+taseru)