68562023-12-19 12:31:35kbotiBevásárláscpp17Wrong answer 40/1003ms4060 KiB
#include <iostream>
using namespace std;

int main() {
    int a,b,c,n=10,k=0;
    cin>>a>>b>>c;
    if (a<n)
    {
        n=n-a;
        k=k+a*300;
    }
    else
    {
        k=k+n*300;
        n=0;
    }
    if (b<n)
    {
        n=n-b;
        k=k+b*350;
    }
    else
    {
        k=k+n*350;
        n=0;
    }
    if (c<n)
    {
        n=n-c;
        k=k+c*400;
    }
    else
    {
        k=k+n*400;
        n=0;
    }
    cout<<k<<endl;
    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted3ms1872 KiB
2Wrong answer3ms2120 KiB
3Accepted3ms2220 KiB
subtask210/10
4Accepted3ms2416 KiB
5Accepted3ms2620 KiB
6Accepted3ms2800 KiB
subtask30/20
7Accepted3ms3016 KiB
8Accepted3ms3268 KiB
9Accepted3ms3480 KiB
10Wrong answer3ms3560 KiB
subtask430/30
11Accepted3ms3692 KiB
12Accepted3ms3772 KiB
13Accepted3ms3904 KiB
14Accepted3ms3984 KiB
subtask50/40
15Accepted3ms3984 KiB
16Wrong answer3ms3944 KiB
17Wrong answer3ms3952 KiB
18Accepted3ms4060 KiB
19Accepted3ms4060 KiB
20Accepted3ms4060 KiB