Wrong Answer
Code
#include <stdio.h>
int main() {
int N,D;
int A,B;
scanf("%d %d",&N,&D);
scanf("%d %d",&A,&B);
int x = D*A;
int y = N-D;
int c = y*B;
int t = x+c;
printf("%d",t);
return 0;
}
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:45:12
- Judged At
- 2024-11-11 03:02:55
- Judged By
- Score
- 0
- Total Time
- 0ms
- Peak Memory
- 324.0 KiB