func_code_string: #include <bits/stdc++.h>      #define all(x) (x).begin(),(x).end()   #define sz(x) int(x.size())      using namespace std;   using ll = long long;   using pii = pair<int, int>;   template<typename... T> void rd(T&... args) {((cin>>args), ...);}   template<typename... T> void wr(T... args) {((cout<<args<<   ), ...); cout<<  n ;}      int main() {       ios::sync_with_stdio(false);       cin.tie(nullptr);       int tt;       cin>>tt;   next:       while (tt--) {           int n, u, v;           cin>>n>>u>>v;           vector<int> a(n);           for (auto& i : a) cin>>i;           int ans=2e9;           for (int i=1; i<n; i++) {               if (abs(a[i]-a[i-1])>1) {                   cout<< 0 n ;                   goto next;               }               if (abs(a[i]-a[i-1])==1) ans=min(ans, min(u, v));           }           ans=min(ans, v+min(u, v));           cout<<ans<<  n ;       }       return 0;   }   