#include <iostream>
using namespace std;

int main() {
    int age;
    cin >> age;

    int syrupPerDay;
    if (age >= 10) {
        syrupPerDay = 25;
    } else if (age >= 7) {
        syrupPerDay = 15;
    } else {
        syrupPerDay = 5;
    }

    int days = 5;
    int syrupPerBottle = 120;
    int totalSyrup = syrupPerDay * days;
    int bottles = (totalSyrup + syrupPerBottle - 1) / syrupPerBottle;

    cout << bottles << endl;

    return 0;
}

原文地址: http://www.cveoy.top/t/topic/iPem 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录