Wrong Answer
Code
#include<bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin>>t;
for(int i =0; i<t; i++)
{
int x,y;
cin>>x>>y;
set<int>a,b;
for(int j = 0; j<x; j++){
int aa;
cin>>aa;
a.insert(aa);
}
for(int j = 0; j<y; j++){
int aa;
cin>>aa;
b.insert(aa);
}
int s1 = a.size();
int s2 = b.size();
if(s1<s2)
{
if(s1==4)
{
cout<<"YES"<<endl;
}else
{
cout<<"NO"<<endl;
}
}else
{
if(s2 == 10)
{
cout<<"YES"<<endl;
}else{
cout<<"NO"<<endl;
}
}
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1153 Is Date Possible?
- Contest
- Happy New Year 2025
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-01-02 15:03:11
- Judged At
- 2025-01-02 15:03:11
- Judged By
- Score
- 0
- Total Time
- 22ms
- Peak Memory
- 532.0 KiB