Cinema
Problem LinkSolution by Mr.Olimpia — 100 pts
Code / Notes
#include <bits/stdc++.h>
using namespace std;
/*int dig(int N) {
int ans = 1;
while (N > 10) {
N /= 10;
ans++;
}
return ans;
}*/
int main() {
int A;
int B;
cin >> A >> B;
int x;
int y;
if(A<=17){
x=15;
}
else if(17<A && A<60){
x=30;
}
else{
x=20;
}
if(B<=17){
y=15;
}
else if(17<B && B<60){
y=30;
}
else{
y=20;
}
cout << x+y;
}
Last updated 2 weeks, 3 days ago