Submission #00051
ソースコード
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 29 30 31 32 33 | #include <iostream> #include <string> #include <stack> #include <queue> #include <set> #include <map> #include <algorithm> #include <functional> #include <vector> #include <cstring> #include <cstdio> #include <cstdlib> using namespace std; signed main(){ cin.tie(0); ios::sync_with_stdio( false ); int s1,t1; int s2,t2; cin>>s1>>t1; cin>>s2>>t2; if (s1<=t2 && s1>=s2) cout<< "Yes\n" ; else if (t1<=t2 && t1>=s2) cout<< "Yes\n" ; else if (s2<=t1 && s2>=s1) cout<< "Yes\n" ; else if (t2<=t1 && t2>=s1) cout<< "Yes\n" ; else cout<< "No\n" ; return 0; } |
ステータス
項目 | データ |
---|---|
問題 | 0002 - 野菜だいきらいの会 |
ユーザー名 | ei1841 |
投稿日時 | 2019-05-27 17:10:00 |
言語 | C++ |
状態 | Accepted |
得点 | 1 |
ソースコード長 | 657 Byte |
最大実行時間 | 113 ms |
最大メモリ使用量 | 620 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 1 / 1 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
input-sample01 | AC | 77 ms | 348 KB |
1
|
input-sample02 | AC | 41 ms | 300 KB |
1
|
input-sample03 | AC | 28 ms | 388 KB |
1
|
input-sample04 | AC | 70 ms | 476 KB |
1
|
input01 | AC | 68 ms | 436 KB |
1
|
input02 | AC | 78 ms | 392 KB |
1
|
input03 | AC | 55 ms | 472 KB |
1
|
input04 | AC | 80 ms | 556 KB |
1
|
input05 | AC | 72 ms | 508 KB |
1
|
input06 | AC | 80 ms | 468 KB |
1
|
input07 | AC | 113 ms | 548 KB |
1
|
input08 | AC | 79 ms | 504 KB |
1
|
input09 | AC | 71 ms | 584 KB |
1
|
input10 | AC | 58 ms | 536 KB |
1
|
input11 | AC | 68 ms | 496 KB |
1
|
input12 | AC | 64 ms | 580 KB |
1
|
input13 | AC | 69 ms | 536 KB |
1
|
input14 | AC | 47 ms | 620 KB |
1
|
input15 | AC | 46 ms | 576 KB |
1
|
input16 | AC | 83 ms | 536 KB |
1
|