#include <stdio.h>

int main(void)
{
    int time, day, m;
    scanf("%d%d", &time, &day);

    if (time <= 30)
    {
        m = 0;
    }
    else if (time < 60)
    {
        m = 2000;

        else 
        {
             m = 2000;
             m += 50 * (time - 60);
        }
            }

    switch (day) {
        case 6 : m *= 0.8;
            break;

        case 7 :  m *= 0.8;
            break;

        default : 
            break;
    }

    printf("최종 주차 요금은 %d원입니다.", m);

    return 0;

}
// 10-500 20-500*2 30-500*3



  

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: