Submission #60941403


Source Code Expand

#include "bits/stdc++.h"
#include <chrono>
using namespace std;

#define LL long long
#define mod 998244353ll
#define PI acos(-1.0)
#define set0(ar) memset(ar, 0, sizeof ar)
#define setinf(ar) memset(ar, 126, sizeof ar)

inline LL bigmod(LL p, LL e, LL M) {
  LL r = 1;
  for (; e > 0; e >>= 1, p = (p * p) % M)
    if (e & 1) r = (r * p) % M;
  return r;
}
inline LL modinverse(LL a, LL M) { return bigmod(a, M - 2, M); }

//mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());



void solve() {
  int a, b, c; cin >> a >> b >> c;
  if((a == b && b == c) || (a+b == c) || (a+c == b) || (a == b+c)) cout << "Yes\n";
  else cout << "No\n";
}


int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);

  int T = 1;
  //cin >> T; 
  for (int ts = 1; ts <= T; ts++) {
    //cout << "Case " << ts << ": ";
    solve();
  }
  
}

Submission Info

Submission Time
Task A - Equally
User nfssdq
Language C++ 23 (gcc 12.2)
Score 100
Code Size 883 Byte
Status AC
Exec Time 1 ms
Memory 3628 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 18
Set Name Test Cases
Sample 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt
All 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt, 01_random_12.txt, 01_random_13.txt, 01_random_14.txt, 01_random_15.txt
Case Name Status Exec Time Memory
00_sample_01.txt AC 1 ms 3560 KiB
00_sample_02.txt AC 1 ms 3512 KiB
00_sample_03.txt AC 1 ms 3508 KiB
01_random_01.txt AC 1 ms 3508 KiB
01_random_02.txt AC 1 ms 3416 KiB
01_random_03.txt AC 1 ms 3492 KiB
01_random_04.txt AC 1 ms 3432 KiB
01_random_05.txt AC 1 ms 3404 KiB
01_random_06.txt AC 1 ms 3556 KiB
01_random_07.txt AC 1 ms 3504 KiB
01_random_08.txt AC 1 ms 3500 KiB
01_random_09.txt AC 1 ms 3628 KiB
01_random_10.txt AC 1 ms 3408 KiB
01_random_11.txt AC 1 ms 3408 KiB
01_random_12.txt AC 1 ms 3420 KiB
01_random_13.txt AC 1 ms 3508 KiB
01_random_14.txt AC 1 ms 3560 KiB
01_random_15.txt AC 1 ms 3508 KiB