結果
| 問題 |
No.2493 K-th in L2 with L1
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-10-06 23:16:40 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 805 bytes |
| コンパイル時間 | 2,663 ms |
| コンパイル使用メモリ | 245,124 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-26 17:00:27 |
| 合計ジャッジ時間 | 3,710 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | AC * 1 WA * 3 |
ソースコード
#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;
if(B <= 4*(A-1)) cout << 1 << " " << A-1 << endl;
else cout << 0 << " " << A << endl;
}
return 0;
}