Wrong Answer
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