// Author: Fuadul Hasan(fuadul202@gmail.com) // Dhaka,Bangladesh #include #include #include // #pragma GCC optimize ("Ofast,unroll-loops") // #pragma GCC target ("avx2") using namespace std; using namespace __gnu_pbds; //debug.......... #define error(args...) {vector_v=split(#args,',');err(_v.begin(),args);cout< split(const string &s, char c) {vectorv; stringstream ss(s); string x;while (getline(ss, x, c))v.emplace_back(x); return move(v);} void err(vector::iterator it) {} templatevoid err(vector::iterator it, T a, Args...args) {cout << it->substr((*it)[0] == ' ', it->length()) << " = " << a << " "; err(++it, args...);} //............ignore it..................// #define F first #define S second #define Pi atan(1)*4 #define mp make_pair #define pb push_back const int M = 1e9 + 7; #define TN typename #define ld long double #define int long long int #define happy cin.tie(0); #define point(x) cout<, null_type, less>, rb_tree_tag, tree_order_statistics_node_update > ordered_set; typedef tree , rb_tree_tag, tree_order_statistics_node_update > ordered_multiset; template using ordered_set = tree, rb_tree_tag, tree_order_statistics_node_update>; /* Note : There is a problem with erase() function in ordered_multiset (for less_equal tag). lower_bound() works as upper_bound() and vice-versa. Be careful to use. i) find_by_order(k) : kth smallest element counting from 0 . ii) order_of_key(k) : number of elements strictly smaller than k. */ int length(long long x){int l = 0;for(long long i=x;i;i/=10)l++;return l;} int dx[8]= {1,0,-1,0,-1,-1,1,1}; int dy[8]= {0,1,0,-1,-1,1,-1,1}; #define rep(i,b,e) for(__typeof(e) i = (b) ; i != (e + 1) - 2 * ((b) > (e)) ; i += 1 - 2 * ((b) > (e))) long long Inv_pow(long long a,long long n){int res = 1;while(n){if(n&1) res = ((res%M)*(a%M))%M;a = ((a%M)*(a%M))%M;n>>=1;}return res%M;} long long Lcm(long long a,long long b){return (((a)*(b)))/__gcd(a,b);} template bool remin(T& a, const T& b) { return a > b ? a = b, 1 : 0; } template bool remax(T& a, const T& b) { return a < b ? a = b, 1 : 0; } template // cin >> pair istream& operator>>(istream &istream, pair &p) { return (istream >> p.first >> p.second); } template // cin >> vector istream& operator>>(istream &istream, vector &v) { for (auto &it : v) cin >> it; return istream; } template // cout << pair ostream& operator<<(ostream &ostream, const pair &p) { return (ostream << p.first << " " << p.second); } template // cout << vector ostream& operator<<(ostream &ostream, const vector &c) { for (auto &it : c) cout << it << " "; return ostream; } inline int add(int a, int b, int mod) {a += b ; return a >= mod ? a - mod : a ;} inline int sub(int a, int b, int mod) {a -= b ; return a < 0 ? a + mod : a ;} inline int mul(int a, int b, int mod) {return (int)a * b % mod ;} inline int sumv(vector&a){int sum = 0;for(auto i: a)sum += i;return sum;} #define Test cout<<"Case "< #define vpr vector #define vi std::vector #define vll std::vector #define all(n) n.begin(),n.end() #define Yes cout << "Yes\n" #define No cout << "No\n" #define YES cout << "YES\n" #define NO cout << "NO\n" const int Inf = (int)2e9 + 5; const int Lnf = 2e18 + 5; const int N = 1429431 + 20; const int maxN = 1e6 + 5; // #define endl '\n' // int int32_t solve() { //Test int n,m; cin>>n>>m; vector a(n) , b(m) , c(n); cin>>a>>b>>c; int s = 0; for(int i=0;i+1 xs; for(int i=0;i>test; while (test--)solve();return 0; } /* I know who.... */