/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 328.0 KiB
#2 Wrong Answer 1ms 284.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
C99 (GCC 13.2.0)
Submit At
2024-09-05 15:50:26
Judged At
2024-11-11 03:02:38
Judged By
Score
10
Total Time
1ms
Peak Memory
328.0 KiB