|
| 1 Неизвестный, 15 мая 2026 г. 20:50:23 |
| a,b,c,d,e,f = map(int,input().split()) lis1 = [a,b,c] lis2 = [d,e,f] n = (max(lis1) * max(lis2)) lis1.remove(max(lis1)) lis2.remove(max(lis2)) k = (max(lis1) * max(lis2)) lis1.remove(max(lis1)) lis2.remove(max(lis2)) c = lis1[0] * lis2[0] print(n + k + c)
|
|
|
| 2 Есім Д улет Дастан лы, 14 мая 2026 г. 15:55:10 |
| #include <bits/stdc++.h> using namespace std; int main() { int a1,a2,a3,b1,b2,b3,mxa=0,mxb=0,mna=0,mnb=0; cin>>a1>>a2>>a3>>b1>>b2>>b3; mxa=max(a1,max(a2,a3)); mxb=max(b1,max(b2,b3)); mna=min(a1,max(a2,a3)); mnb=min(a1,max(a2,a3)); if (mxa==a1 and mna==a2 and mxb==b1 and mnb==b2) { cout<<(mxa*mxb)+(mna*mnb)+(a3*b3); } else if (mxa==a1 and mna==a2 and mxb==b1 and mnb==b2) { cout<<(mxa*mxb)+(mna*mnb)+(a3*b3); } else if (mxa==a1 and mna==a2 and mxb==b1 and mnb==b3) { cout<<(mxa*mxb)+(mna*mnb)+(a3*b2); } else if (mxa==a1 and mna==a2 and mxb==b2 and mnb==b1) { cout<<(mxa*mxb)+(mna*mnb)+(a3*b3); } else if (mxa==a1 and mna==a2 and mxb==b2 and mnb==b3) { cout<<(mxa*mxb)+(mna*mnb)+(a3*b1); } else if (mxa==a1 and mna==a2 and mxb==b3 and mnb==b1) { cout<<(mxa*mxb)+(mna*mnb)+(a3*b2); } else if (mxa==a1 and mna==a2 and mxb==b3 and mnb==b2) { cout<<(mxa*mxb)+(mna*mnb)+(a3*b1); } else if (mxa==a1 and mna==a3 and mxb==b1 and mnb==b2) {
|
|
|
| 3 Махмадов Мухаммадикбол, 17 апреля 2026 г. 12:07:01 |
| #include <bits/stdc++.h> using namespace std; int main() { int a1,a2,a3,b1,b2,b3,c; cin>>a1>>a2>>a3>>b1>>b2>>b3; if(a1<a2){c=a1; a1=a2; a2=c;} if(a2<a3){c=a2; a2=a3; a3=c;} if(a1<a2){c=a1; a1=a2; a2=c;} if(b1<b2){c=b1; b1=b2; b2=c;} if(b2<b3){c=b2; b2=b3; b3=c;} if(b1<b2){c=b1; b1=b2; b2=c;} cout<<a1*b1+a2*b2+a3*b3; }
|
|
|
| 4 Черкасов Лев Ильич, 07 апреля 2026 г. 14:25:14 |
| a = list(map(int,input().split())) a1 = max(a[0],a[1],a[2]) b1 = max(a[3],a[4],a[5]) a3 = min(a[0],a[1],a[2]) b3 = min(a[3],a[4],a[5]) a2 = a[0]+a[1]+a[2] - a1 - a3 b2 = a[3]+a[4]+a[5] - b1 - b3 print((a1*b1)+(a2*b2)+(a3*b3)) вотч демо 67 покойо
|
|
|
| 5 Расулзода Иброхим, 07 марта 2026 г. 17:17:48 |
| #include <iostream> #include <algorithm> using namespace std; int main() { int a[3], b[3]; for (int i = 0; i < 3; ++i) cin >> a[i]; for (int i = 0; i < 3; ++i) cin >> b[i]; sort(a, a + 3); sort(b, b + 3); int profit = 0; for (int i = 0; i < 3; ++i) profit += a[i] * b[i]; cout << profit << endl; return 0; }
|
|
|
| 6 Мирослав Петельчиц, 03 марта 2026 г. 20:22:27 |
| package main import "fmt" func main(){ var a1, a2, a3, b1, b2, b3 int fmt.Scan(&a1, &a2, &a3, &b1, &b2, &b3) if a1<a2{ a1, a2 = a2, a1} if a2<a3{ a2, a3 = a3, a2} if a1<a2{ a1, a2 = a2, a1} if b1<b2{ b1, b2 = b2, b1} if b2<b3{ b2, b3 = b3, b2} if b1<b2{ b1, b2 = b2, b1} res := a1*b1+ a2*b2 + a3*b3 fmt.Println(res) }
|
|
|
| 7 Газиз Айлин, 10 февраля 2026 г. 12:57:51 |
| какие числа в 3 задаче ?
|
|
|
| 8 Анарбай Мирас Медетулы, 30 декабря 2025 г. 8:36:58 |
| a1, a2, a3, b1, b2, b3 = map(int, input().split()) prices = [a1, a2, a3] volumes = [b1, b2, b3] prices.sort(reverse=True) volumes.sort(reverse=True) total = prices[0]*volumes[0] + prices[1]*volumes[1] + prices[2]*volumes[2] print(total)
|
|
|
| 9 Дроздов Степан, 10 декабря 2025 г. 19:59:28 |
| n
|
|
|
| 10 Лекер Ален Ануарулы, 07 декабря 2025 г. 16:15:42 |
| n=list(map(int,input().split())) s1=sorted(n[:3]) s2=sorted(n[3:]) print(s1[0]*s2[0]+s1[1]*s2[1]+s1[2]*s2[2])
|
|
|
| 11 Тайжан Назым, 04 декабря 2025 г. 8:42:43 |
| a1,a2,a3,b1,b2,b3=map(int, input().split()) bb=max(b1,b2,b3) bbb=min(b1,b2,b3) aa=max(a1,a2,a3) aaa=min(a1,a2,a3) kk=a1+a2+a3-aa-aaa hh=b1+b2+b3-bb-bbb if bb<=100: print(bb*aa+aaa*bbb+kk*hh)
|
|
|
| 12 Мокров Никита Александрович, 07 ноября 2025 г. 15:53:01 |
| Всем привет а как узнать, какой третий тест?
|
|
|
| 13 Урубаев Абдисатар, 06 ноября 2025 г. 11:39:17 |
| a1,a2,a3,b1,b2,b3=map(int,input().split()) mxa=max(a1,a2,a3) mna=min(a1,a2,a3) ora=a1+a2+a3-mxa-mna mxb=max(b1,b2,b3) mnb=min(b1,b2,b3) orb=b1+b2+b3-mxb-mnb print(mxa*mxb+ora*orb+mna*mnb)
|
|
|
| 14 КТЛ-чел Билял, 28 октября 2025 г. 19:01:14 |
| #include <iostream> #include <algorithm> using namespace std; int main() { int a[3], b[3]; for (int i = 0; i < 3; ++i) cin >> a[i]; for (int i = 0; i < 3; ++i) cin >> b[i]; sort(a, a + 3); sort(b, b + 3); int profit = 0; for (int i = 0; i < 3; ++i) profit += a[i] * b[i]; cout << profit << endl; return 0; }
|
|
|
| 15 Диас, 28 октября 2025 г. 18:36:04 |
| int a[3], b[3]; for (int i = 0; i < 3; ++i) cin >> a[i]; for (int i = 0; i < 3; ++i) cin >> b[i]; sort(a, a + 3); sort(b, b + 3); int profit = 0; for (int i = 0; i < 3; ++i) profit += a[i] * b[i]; cout << profit << endl; return 0; }
|
|
|
| 16 Жалгасбек Дтжар Нурболатевич, 28 октября 2025 г. 18:32:50 |
| #include <iostream> #include <algorithm> using namespace std; int main() { int a[3], b[3]; for (int i = 0; i < 3; ++i) cin >> a[i]; for (int i = 0; i < 3; ++i) cin >> b[i]; sort(a, a + 3); sort(b, b + 3); int profit = 0; for (int i = 0; i < 3; ++i) profit += a[i] * b[i]; cout << profit << endl; return 0; }
|
|
|
| 17 Неизвестный, 28 октября 2025 г. 12:31:19 |
| bra megomton
|
|
|
| 18 Ярбобоев Усмонджон, 28 октября 2025 г. 12:30:43 |
| #include <bits/stdc++.h> using namespace std; int main() { int a1,a2,a3,b1,b2,b3,c; cin>>a1>>a2>>a3>>b1>>b2>>b3; if(a1<a2){c=a1; a1=a2; a2=c;} if(a2<a3){c=a2; a2=a3; a3=c;} if(a1<a2){c=a1; a1=a2; a2=c;} if(b1<b2){c=b1; b1=b2; b2=c;} if(b2<b3){c=b2; b2=b3; b3=c;} if(b1<b2){c=b1; b1=b2; b2=c;} cout<<a1*b1+a2*b2+a3*b3; }
|
|
|
| 19 Диас, 28 октября 2025 г. 8:46:13 |
| я вернусь через год,,,,,,,,,,
|
|
|
| 20 Диас, 28 октября 2025 г. 8:44:42 |
| завалитесь
|
|
|
Чтобы оставить сообщение необходимо зарегистрироваться и авторизоваться!
| |