結果
| 問題 |
No.2493 K-th in L2 with L1
|
| ユーザー |
|
| 提出日時 | 2023-09-12 11:41:55 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 253 bytes |
| コンパイル時間 | 205 ms |
| コンパイル使用メモリ | 82,268 KB |
| 実行使用メモリ | 53,892 KB |
| 最終ジャッジ日時 | 2024-06-30 00:09:28 |
| 合計ジャッジ時間 | 1,361 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 4 |
ソースコード
q = int(input())
for _ in range(q):
d, k = map(int, input().split(" "))
if d == 0: print("Yes\n0 0" if k == 1 else "No")
elif k > 4 * d: print("No")
else:
print("Yes")
k = (k + 3) // 4
t = (d + d % 2) // 2 + (k + d % 2) // 2
print(t, d - t)