Submission #00019


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/// {{{
#include "bits/stdc++.h"
#define ALL(x) x.begin(), x.end()
#define iostreamBooster() do{cin.tie(nullptr);ios::sync_with_stdio(false);}while(0)
#define rep(i, s, t) for(int i = int(s); i < int(t); ++i)
using namespace std;
typedef long long i64;
typedef pair<int,int> pii;
template<class A, class B>inline bool chmax(A &a, const B &b){return b>a ? a=b,1 : 0;}
template<class A, class B>inline bool chmin(A &a, const B &b){return b<a ? a=b,1 : 0;}
constexpr int INF = 0x3f3f3f3f;
constexpr i64 LINF = 0x3f3f3f3f3f3f3f3fLL;
// }}}
signed main()
{
int a, b, c, d;
cin >> a >> b >> c >> d;
if (b < c || d < a) {
puts("No");
} else {
puts("Yes");
}
return 0;
}

ステータス

項目 データ
問題 0002 - 野菜だいきらいの会
ユーザー名 Arumakan_ei1727
投稿日時 2019-05-27 17:02:03
言語 C++14
状態 Accepted
得点 1
ソースコード長 731 Byte
最大実行時間 27 ms
最大メモリ使用量 700 KB

セット

セット 得点 Cases
1 ALL 1 / 1 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input-sample01 AC 17 ms 604 KB
1
input-sample02 AC 21 ms 452 KB
1
input-sample03 AC 20 ms 420 KB
1
input-sample04 AC 23 ms 396 KB
1
input01 AC 20 ms 368 KB
1
input02 AC 24 ms 344 KB
1
input03 AC 22 ms 440 KB
1
input04 AC 20 ms 532 KB
1
input05 AC 27 ms 504 KB
1
input06 AC 17 ms 468 KB
1
input07 AC 19 ms 440 KB
1
input08 AC 21 ms 672 KB
1
input09 AC 24 ms 644 KB
1
input10 AC 21 ms 488 KB
1
input11 AC 20 ms 456 KB
1
input12 AC 20 ms 560 KB
1
input13 AC 15 ms 660 KB
1
input14 AC 17 ms 628 KB
1
input15 AC 20 ms 596 KB
1
input16 AC 21 ms 700 KB
1