Cinema

Problem Link

Solution by augusto100 pts

Code / Notes

#include <bits/stdc++.h>
using namespace std;

int main() {

    int a, b, total = 0;

    cin >> a >> b;

    if (a <= 17)
        total += 15;
    else if (a <= 59)
        total += 30;
    else
        total += 20;

    if (b <= 17)
        total += 15;
    else if (b <= 59)
        total += 30;
    else
        total += 20;

    cout << total << endl;

    return 0;
}

Last updated 2 weeks, 3 days ago


« Back to problem