/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 0ms 320.0 KiB
#2 Wrong Answer 0ms 320.0 KiB
#3 Wrong Answer 1ms 284.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-11-11 03:02:13
Judged By
Score
10
Total Time
1ms
Peak Memory
320.0 KiB