Submission #53082922
Source Code Expand
Copy
#include<bits/stdc++.h>using namespace std;int main(){int N,X,Y,Z;cin >> N >> X >> Y >> Z;if(X>Y){if(X>Z&&Z>Y) cout << "Yes" << endl;else cout << "No" << endl;}else{if(X<Z&&Z<Y) cout << "Yes" << endl;else cout << "No" << endl;}}
#include<bits/stdc++.h> using namespace std; int main(){ int N,X,Y,Z; cin >> N >> X >> Y >> Z; if(X>Y){ if(X>Z&&Z>Y) cout << "Yes" << endl; else cout << "No" << endl; } else{ if(X<Z&&Z<Y) cout << "Yes" << endl; else cout << "No" << endl; } }
Submission Info
Submission Time | |
---|---|
Task | A - AtCoder Line |
User | miromaru360 |
Language | C++ 20 (gcc 12.2) |
Score | 100 |
Code Size | 311 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 3648 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample00.txt, sample01.txt, sample02.txt |
All | sample00.txt, sample01.txt, sample02.txt, testcase00.txt, testcase01.txt, testcase02.txt, testcase03.txt, testcase04.txt, testcase05.txt, testcase06.txt, testcase07.txt, testcase08.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample00.txt | AC | 1 ms | 3460 KB |
sample01.txt | AC | 1 ms | 3456 KB |
sample02.txt | AC | 1 ms | 3496 KB |
testcase00.txt | AC | 1 ms | 3492 KB |
testcase01.txt | AC | 1 ms | 3572 KB |
testcase02.txt | AC | 1 ms | 3648 KB |
testcase03.txt | AC | 1 ms | 3644 KB |
testcase04.txt | AC | 1 ms | 3576 KB |
testcase05.txt | AC | 1 ms | 3436 KB |
testcase06.txt | AC | 1 ms | 3456 KB |
testcase07.txt | AC | 1 ms | 3368 KB |
testcase08.txt | AC | 1 ms | 3560 KB |