Submission #814928


Source Code Expand

Copy
#include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#define sz size()
#define all(a) a.begin(), a.end()
#define allr(a) a.rbegin(), a.rend()
#define mod 1000000007
#define _for(it, a) \
  for (__typeof(a.begin()) it = a.begin(); it != a.end(); ++it)

using namespace std;

int main() {
  int a, b, c;
  cin >> a >> b >> c;
  vector<int> p;
  p.pb(a);
  p.pb(b);
  p.pb(c);
  sort(all(p));
  if (p[0] == 5 && p[1] == 5 && p[2] == 7) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}

// Built using Sublime-CHelper plug-in (beta)

Submission Info

Submission Time
Task A - Iroha and Haiku (ABC Edition)
User achaitanyasai
Language C++14 (GCC 5.4.1)
Score 100
Code Size 644 Byte
Status AC
Exec Time 4 ms
Memory 256 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 5
Set Name Test Cases
Sample subtask0_sample_01.txt, subtask0_sample_02.txt
All subtask0_sample_01.txt, subtask0_sample_02.txt, subtask1_X_575.txt, subtask1_X_577.txt, subtask1_X_755.txt
Case Name Status Exec Time Memory
subtask0_sample_01.txt AC 4 ms 256 KB
subtask0_sample_02.txt AC 4 ms 256 KB
subtask1_X_575.txt AC 4 ms 256 KB
subtask1_X_577.txt AC 4 ms 256 KB
subtask1_X_755.txt AC 4 ms 256 KB