QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#689956 | #5141. Identical Parity | IsacBieber# | WA | 0ms | 3544kb | C++23 | 932b | 2024-10-30 19:25:13 | 2024-10-30 19:25:13 |
Judging History
answer
#include <bits/stdc++.h>
// #include<bits/extc++.h>
#define endl '\n'
#define eps 1e-7
#define pb push_back
#define eb emplace_back
#define debug(x) cerr<<#x<<": "<<x<<'\n';
// using namespace __gnu_pbds;
using namespace std;
using ll = long long;
using ld = long double;
using pll = pair <ll,ll>;
using pii = pair <int,int>;
using ull = unsigned long long;
const int N = 1e6 + 5, MOD = 1e9 + 7;
mt19937_64 rnd (chrono::steady_clock::now().time_since_epoch().count());
int n, k;
void isac()
{
cin>>n>>k;
if(n==k && n==1)
{
cout<<"Yes\n";
return ;
}
if(n==1) cout<<"No\n";
else cout<<"Yes\n";
}
int main(void)
{
ios::sync_with_stdio(0);
cin.tie(0), cout.tie(0);
int T = 1;
cin >> T;
while (T--) isac();
return 0;
}
/*
Zena youth together.
Such a pretty name.
There will be a long story.
Time will tell all.
*/
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3544kb
input:
3 3 1 4 2 5 3
output:
Yes Yes Yes
result:
wrong answer expected NO, found YES [1st token]