Submission #8840822
Source Code Expand
#include <vector> #include <math.h> #include <iostream> #include <string> #include <algorithm> #include <queue> #include <iomanip> #include <deque> using namespace std; using uint = unsigned int; using ll = long long; using ull = unsigned long long; template <class T> using V = vector<T>; template <class T> using VV = V<V<T>>; #define rep(i, n) for(int i = 0; i<n; i++) #define rep_s(i, start, n) for(int i= start; i<n; i++) #define ALL(a) (a).begin(), (a).end() string alphabet_upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; string alphabet_lower = "abcdefghijklmnopqrstuvwxyz"; /* using edge = struct {int to; ll cost;}; vector<edge> tree[limit]; ll depth[limit]; void dfs(int v, int p, ll d){ depth[v] = d; //cout <<"v: " << v << endl; for (auto &e: tree[v]){ //cout << "e.to: " << e.to << endl; if (e.to == p) continue; dfs(e.to, v, d+e.cost); } } */ int main(void){ int a, b, c; cin >> a >> b >> c; if (a==b ) cout << c << endl; else if(a == c) cout << b << endl; else cout << a << endl; }
Submission Info
Submission Time | |
---|---|
Task | A - One out of Three |
User | Daisi96 |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 1070 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 256 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample_01.txt, sample_02.txt, sample_03.txt |
All | sample_01.txt, sample_02.txt, sample_03.txt, subtask_1_1.txt, subtask_1_2.txt, subtask_1_3.txt, subtask_1_4.txt, subtask_1_5.txt, subtask_1_6.txt, subtask_1_7.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | AC | 1 ms | 256 KB |
sample_02.txt | AC | 1 ms | 256 KB |
sample_03.txt | AC | 1 ms | 256 KB |
subtask_1_1.txt | AC | 1 ms | 256 KB |
subtask_1_2.txt | AC | 1 ms | 256 KB |
subtask_1_3.txt | AC | 1 ms | 256 KB |
subtask_1_4.txt | AC | 1 ms | 256 KB |
subtask_1_5.txt | AC | 1 ms | 256 KB |
subtask_1_6.txt | AC | 1 ms | 256 KB |
subtask_1_7.txt | AC | 1 ms | 256 KB |