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\n",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:48:05
- Judged At
- 2024-10-03 13:10:20
- Judged By
- Score
- 0
- Total Time
- 1ms
- Peak Memory
- 324.0 KiB