feat(codeforces): 1062 div 4
This commit is contained in:
parent
6fc5131466
commit
7b9271093d
6 changed files with 296 additions and 0 deletions
27
codeforces/1062/2167a.cc
Normal file
27
codeforces/1062/2167a.cc
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#include <iostream>
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
using namespace std;
|
||||
vector<int> a;
|
||||
void solve() {
|
||||
a.resize(4);
|
||||
for (int i = 0; i < a.size(); ++i) {
|
||||
cin >> a[i];
|
||||
}
|
||||
|
||||
sort(begin(a), end(a));
|
||||
|
||||
if (a.front() == a.back()) {
|
||||
cout << "YES";
|
||||
} else
|
||||
cout << "NO";
|
||||
cout << '\n';
|
||||
}
|
||||
int main() {
|
||||
int t;
|
||||
cin >> t;
|
||||
for (int i = 0; i < t; ++i) {
|
||||
solve();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue