68582023-12-19 12:34:02kbotiBevásárláscpp17Wrong answer 40/1003ms3492 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
1Accepted3ms1876 KiB
2Wrong answer3ms2068 KiB
3Accepted3ms2280 KiB
subtask210/10
4Accepted3ms2368 KiB
5Accepted3ms2488 KiB
6Accepted3ms2740 KiB
subtask30/20
7Accepted3ms2916 KiB
8Accepted3ms2996 KiB
9Accepted3ms3124 KiB
10Wrong answer3ms3212 KiB
subtask430/30
11Accepted3ms3212 KiB
12Accepted3ms3212 KiB
13Accepted3ms3208 KiB
14Accepted3ms3212 KiB
subtask50/40
15Accepted3ms3208 KiB
16Wrong answer3ms3212 KiB
17Wrong answer3ms3328 KiB
18Accepted3ms3340 KiB
19Accepted3ms3460 KiB
20Accepted3ms3492 KiB