func_code_string: #include <bits/stdc++.h>   using namespace std;   const int N = 1e6 + 100;   const int INF = (int)1e9;   int main() {     ios_base::sync_with_stdio(0);     cin.tie(0);     ;     long long n, m;     cin >> n >> m;     vector<long long> a(n + 1);     for (int i = 1; i <= n; i++) cin >> a[i];     long long x, y, z;     while (m--) {       cin >> x >> y >> z;       long long c1 = 0, c2 = 0;       for (int i = x; i <= z; i++)         if (a[i] > a[z]) c1++;       for (int i = z; i <= y; i++)         if (a[i] < a[z]) c2++;       if (c1 == c2)         cout <<  Yes  << endl;       else         cout <<  No  << endl;     }   }   