aboutsummaryrefslogtreecommitdiff
path: root/codeforces/Sum/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'codeforces/Sum/main.cpp')
-rwxr-xr-xcodeforces/Sum/main.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/codeforces/Sum/main.cpp b/codeforces/Sum/main.cpp
index f9def9b..ca01bb8 100755
--- a/codeforces/Sum/main.cpp
+++ b/codeforces/Sum/main.cpp
@@ -1,5 +1,5 @@
#include <algorithm>
-#include<bits/stdc++.h>
+#include <bits/stdc++.h>
using namespace std;
@@ -25,21 +25,21 @@ const int dy[4]{0, 1, 0, -1};
void solve() {
vi v(3);
- for (auto &x : v) cin >> x;
- if (v[0] + v[1] == v[2] || v[1] + v[2] == v[0] || v[0] + v[2] == v[1]) {
+ for (auto &x : v)
+ cin >> x;
+ if (v[0] + v[1] == v[2] || v[1] + v[2] == v[0] || v[0] + v[2] == v[1]) {
cout << "YES" << '\n';
} else {
cout << "NO" << '\n';
}
-
}
-int main () {
+int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int tt;
cin >> tt;
- while(tt--) {
+ while (tt--) {
solve();
}
}