Submission #2215385
Source Code Expand
#include <algorithm> #include <cstdio> #include <iostream> #include <cfloat> #include <climits> #include <cstdlib> #include <cstring> #include <cmath> #include <queue> #include <sstream> #include <stack> #include <time.h> #include <vector> #include <complex> using namespace std; int main(){ int a,b,c,k=0; cin>>a>>b>>c; if ((a != b) and (a != c)) k=a; else if ((b != a) and (b != c)) k=b; else k=c; cout<<k; system ("pause"); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - One out of Three |
User | Derek |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 510 Byte |
Status | AC |
Exec Time | 3 ms |
Memory | 504 KB |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:27:19: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result] system ("pause"); ^
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 | 3 ms | 504 KB |
sample_02.txt | AC | 2 ms | 504 KB |
sample_03.txt | AC | 2 ms | 504 KB |
subtask_1_1.txt | AC | 2 ms | 504 KB |
subtask_1_2.txt | AC | 2 ms | 500 KB |
subtask_1_3.txt | AC | 2 ms | 504 KB |
subtask_1_4.txt | AC | 2 ms | 504 KB |
subtask_1_5.txt | AC | 2 ms | 504 KB |
subtask_1_6.txt | AC | 2 ms | 504 KB |
subtask_1_7.txt | AC | 2 ms | 504 KB |