結果
問題 |
No.2493 K-th in L2 with L1
|
ユーザー |
![]() |
提出日時 | 2025-05-17 10:36:50 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 42 ms / 2,000 ms |
コード長 | 278 bytes |
コンパイル時間 | 470 ms |
コンパイル使用メモリ | 81,972 KB |
実行使用メモリ | 52,736 KB |
最終ジャッジ日時 | 2025-05-17 10:36:52 |
合計ジャッジ時間 | 1,690 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 4 |
ソースコード
for _ in range(int(input())): d,k = map(int,input().split()) if d == 0 and k == 1: print("Yes") print(0,0) continue if k > 4 * d: print("No") continue k2 = 4 * d - k i = (k2 + 4) // 8 print("Yes") print(i,d-i)