Wrong Answer
Code
#include "bits/stdc++.h"
using namespace std;
#define k(n) begin(n), end(n)
void solve(){
int n; cin >> n;
vector<int> a(n), b(n);
for (auto &e: a) cin >> e;
for (auto &e: b) cin >> e;
cout << (*min_element(k(a)) > *max_element(k(b)) ? "Yes\n" : "No\n");
}
int main(){int t; cin >> t; while (t--) solve();}
Information
- Submit By
- Type
- Submission
- Problem
- P1193 C. Roy and Peak Array
- Contest
- Brain Booster #10
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-06-13 15:58:36
- Judged At
- 2025-06-13 15:58:36
- Judged By
- Score
- 0
- Total Time
- 1ms
- Peak Memory
- 540.0 KiB