Submission #50996


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include<bits/stdc++.h>
using namespace std;
signed main(){
cin.tie(NULL);
ios::sync_with_stdio(false);
long long hate1,hate2,hoby1,hoby2;
cin>>hate1>>hate2>>hoby1>>hoby2;
if(hate1<=hoby1 && hoby1<=hate2){
cout<<"Yes"<<'\n';
}
else if(hate1<=hoby2 && hoby2<=hate2){
cout<<"Yes"<<'\n';
}
else if(hate1>hoby1 && hate2<hoby2){
cout<<"Yes"<<'\n';
}
else{
cout<<"No"<<'\n';
}
return(0);
}

ステータス

項目 データ
問題 0925 - 野菜だいきらいの会
ユーザー名 NASSUN_ei1906
投稿日時 2019-07-02 15:46:43
言語 C++
状態 Accepted
得点 1
ソースコード長 447 Byte
最大実行時間 31 ms
最大メモリ使用量 668 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input-sample01 AC 23 ms 600 KB
1
input-sample02 AC 23 ms 432 KB
1
input-sample03 AC 27 ms 388 KB
1
input-sample04 AC 21 ms 468 KB
1
input01 AC 18 ms 544 KB
1
input02 AC 31 ms 500 KB
1
input03 AC 21 ms 584 KB
1
input04 AC 19 ms 668 KB
1
input05 AC 24 ms 620 KB
1
input06 AC 15 ms 580 KB
1
input07 AC 18 ms 536 KB
1
input08 AC 23 ms 616 KB
1
input09 AC 28 ms 576 KB
1
input10 AC 21 ms 528 KB
1
input11 AC 19 ms 608 KB
1
input12 AC 19 ms 560 KB
1
input13 AC 24 ms 640 KB
1
input14 AC 18 ms 592 KB
1
input15 AC 24 ms 548 KB
1
input16 AC 26 ms 504 KB
1