Professional Documents
Culture Documents
9.pushback (Make - Pair (Y, Flglgti) .First) - Second) .Second : Gpragram1.Cppfog (Int, Int
9.pushback (Make - Pair (Y, Flglgti) .First) - Second) .Second : Gpragram1.Cppfog (Int, Int
cpp
26
27
ans
flglgti].first]. second].second;
28 return ans;
29
30
30
31 int main()
32 11 Input the size of segment A,B,C;
33 int n;
34 cin > n;
35 1 Input segment A
36 vector<int> a;
37 for(auto &vall: a) cin >» vall;
38 1 Input segment B
39 vector<int> b;
40 for(auto &val2: b)) cin >> val2;
41 11 Input segment C
42 vectorcint> c;
43 for(auto 6val3: c)cin val3;
44
45 // Calling fog function
46 for(int i = i
0;
<n; i+){
47 cout < fog(a[il, b[il, c[i], n) «< endl;
48
49 1/ Calling gof function
50 for(int i = 0; i < n; i+){