Toggle navigation
YouTube
Facebook
Telegram
english
english
українська
Algotester 4.3
Build 496
2024-10-17
Log In
Contact Us
College
Sponsors
Donate
Sources
C++ 14
#include <iostream> using namespace std; int main() { int rm, sm,pm; cin >> rm >> sm >> pm; int rz, sz, pz; cin >> rz >> sz >> pz; int ans = min(rm, sz) + min(sm, pz) + min(pm, rz); cout << ans << endl; return 0; }