Submission #10128785
Source Code Expand
#include <bits/stdc++.h>
#define INF 1e9
using namespace std;
#define REPR(i,n) for(int i=(n); i >= 0; --i)
#define FOR(i, m, n) for(int i = (m); i < (n); ++i)
#define REP(i, n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define ALL(a) (a).begin(),(a).end()
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return true; } return false; }
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return true; } return false; }
int gcd(int a,int b){return b?gcd(b,a%b):a;}
typedef long long ll;
ll gcd(ll a,ll b){return b?gcd(b,a%b):a;}
int main() {
set<int> s;
int a,b,c;
cin >> a >> b >> c;
s.insert(a);
s.insert(b);
s.insert(c);
if (s.size() == 2) cout << "Yes" << endl;
else cout << "No" << endl;
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Poor |
| User | reud |
| Language | C++14 (GCC 5.4.1) |
| Score | 100 |
| Code Size | 804 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 256 KiB |
Judge Result
| Set Name | Sample | Subtask1 | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample_01.txt, sample_02.txt, sample_03.txt, sample_04.txt |
| Subtask1 | sample_01.txt, sample_02.txt, sample_03.txt, sample_04.txt, sub1_01.txt, sub1_02.txt, sub1_03.txt, sub1_04.txt, sub1_05.txt, sub1_06.txt, sub1_07.txt, sub1_08.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| sample_01.txt | AC | 1 ms | 256 KiB |
| sample_02.txt | AC | 1 ms | 256 KiB |
| sample_03.txt | AC | 1 ms | 256 KiB |
| sample_04.txt | AC | 1 ms | 256 KiB |
| sub1_01.txt | AC | 1 ms | 256 KiB |
| sub1_02.txt | AC | 1 ms | 256 KiB |
| sub1_03.txt | AC | 1 ms | 256 KiB |
| sub1_04.txt | AC | 1 ms | 256 KiB |
| sub1_05.txt | AC | 1 ms | 256 KiB |
| sub1_06.txt | AC | 1 ms | 256 KiB |
| sub1_07.txt | AC | 1 ms | 256 KiB |
| sub1_08.txt | AC | 1 ms | 256 KiB |