/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 0ms 564.0 KiB
#2 Wrong Answer 0ms 320.0 KiB
#3 Wrong Answer 1ms 324.0 KiB
#4 Wrong Answer 1ms 284.0 KiB
#5 Wrong Answer 5ms 512.0 KiB
#6 Wrong Answer 45ms 1.172 MiB
#7 Wrong Answer 44ms 1.242 MiB
#8 Wrong Answer 45ms 1.176 MiB
#9 Wrong Answer 45ms 1.281 MiB
#10 Wrong Answer 1ms 516.0 KiB

Code

#include<stdio.h>
int main()
{
    int t;
    scanf("%d",&t);
    while(t--)
    {
        int N,D;
        scanf("%d %d",&N,&D);
        int A,B;
        scanf("%d %d",&A,&B);
        int c,e;
        c=N-D;
        e=((D*A)+(c*B));
        printf("%d\n",e);
    }
}

Information

Submit By
Type
Submission
Problem
P1090 Summer trip
Contest
Brain Booster #5
Language
C++17 (G++ 13.2.0)
Submit At
2024-09-05 15:56:46
Judged At
2024-10-03 13:09:42
Judged By
Score
10
Total Time
45ms
Peak Memory
1.281 MiB