/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 372.0 KiB
#2 Wrong Answer 1ms 328.0 KiB
#3 Wrong Answer 1ms 328.0 KiB
#4 Wrong Answer 2ms 572.0 KiB
#5 Wrong Answer 8ms 456.0 KiB
#6 Wrong Answer 86ms 1.184 MiB
#7 Wrong Answer 91ms 1.336 MiB
#8 Wrong Answer 84ms 1.262 MiB
#9 Wrong Answer 91ms 1.188 MiB
#10 Wrong Answer 1ms 392.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-10-03 13:10:12
Judged By
Score
10
Total Time
91ms
Peak Memory
1.336 MiB