Skip to content

Commit

Permalink
Create ABC_201_A.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
kamlesh012 authored Jul 27, 2021
1 parent e9e5f75 commit 73ef735
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions ABC_201_A.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#include <bits/stdc++.h>
#define int long long
#define mod 1000000007
using namespace std;
void solve()
{
int a[3];
for (int i = 0; i < 3; i++)
{
cin >> a[i];
}
sort(a, a + 3);
if ((a[1] - a[0]) == (a[2] - a[1]))cout << "Yes" << endl;
else cout << "No" << endl;
}

int32_t main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
solve();
}

0 comments on commit 73ef735

Please sign in to comment.