Submission #17065157


Source Code Expand

#define _CRT_SECURE_NO_WARNINGS
#include <bits/stdc++.h>
#include <unordered_map>
#include <chrono>
#include <random>

using namespace std;

typedef long long ll;
//mt19937 rng(chrono::high_resolution_clock::now().time_since_epoch().count());

void solve() {
	ll a, b, c, d;
	cin >> a >> b >> c >> d;
	if (a > c) {
		swap(a, c);
		swap(b, d);
	}

	if (c <= b)
		cout << "Yes";
	else
		cout << "No";
}

int main() {
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
#if defined(_DEBUG)
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
#endif
	int q = 1;
	//cin >> q;
	for (; q > 0; q--) {
		solve();
		//cout << endl;
	}
}

Submission Info

Submission Time
Task B - Integer Preference
User Zombie358
Language C++ (GCC 9.2.1)
Score 200
Code Size 691 Byte
Status AC
Exec Time 11 ms
Memory 3632 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 2
AC × 12
Set Name Test Cases
Sample example0.txt, example1.txt
All 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, example0.txt, example1.txt
Case Name Status Exec Time Memory
000.txt AC 11 ms 3468 KiB
001.txt AC 2 ms 3632 KiB
002.txt AC 2 ms 3564 KiB
003.txt AC 2 ms 3520 KiB
004.txt AC 2 ms 3440 KiB
005.txt AC 6 ms 3524 KiB
006.txt AC 2 ms 3492 KiB
007.txt AC 2 ms 3516 KiB
008.txt AC 2 ms 3544 KiB
009.txt AC 2 ms 3544 KiB
example0.txt AC 2 ms 3548 KiB
example1.txt AC 2 ms 3584 KiB