結果
| 問題 |
No.2493 K-th in L2 with L1
|
| ユーザー |
|
| 提出日時 | 2023-10-06 23:03:45 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 762 bytes |
| コンパイル時間 | 2,513 ms |
| コンパイル使用メモリ | 243,780 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-26 16:54:27 |
| 合計ジャッジ時間 | 3,434 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 4 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
//#include <atcoder/all>
//using namespace atcoder;
typedef long long ll;
typedef unsigned long long ull;
const int MAX = 1e9;
const int MIN = -1*1e9;
const ll MAXLL = 1e18;
const ll MINLL = -1*1e18;
//const ll MOD = 998244353;
//const ll MOD = 1000000007;
int main()
{
int Q; cin >> Q;
for(int q = 0; q < Q; q++)
{
int A,B; cin >> A >> B;
if(A == 0 && B == 1)
{
cout << "Yes" << endl;
cout << 0 << " " << 0 << endl;
continue;
}
if(B > 4*A)
{
cout << "No" << endl;
continue;
}
cout << "Yes" << endl;
cout << ((B-1)/4+1) << " " << ((B-1)/4+1) << endl;
}
return 0;
}