Cinema
Problem LinkSolution by TheRealFertos — 100 pts
Code / Notes
#include <bits/stdc++.h>
using namespace std;
int main () {
int a, b;
cin >> a >> b;
if (a<18) {
a=15;
}
else if (a>18 && a<60) {
a=30;
}
else {
a=20;
}
if (b<18) {
b=15;
}
else if (b>18 && b<60) {
b=30;
}
else {
b=20;
}
cout << a+b;
}
Last updated 2 weeks, 3 days ago