/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Wrong Answer 1ms 516.0 KiB
#2 Wrong Answer 1ms 284.0 KiB
#3 Wrong Answer 1ms 284.0 KiB
#4 Wrong Answer 1ms 332.0 KiB
#5 Wrong Answer 1ms 328.0 KiB
#6 Wrong Answer 1ms 332.0 KiB
#7 Wrong Answer 1ms 332.0 KiB
#8 Wrong Answer 1ms 284.0 KiB
#9 Wrong Answer 1ms 516.0 KiB
#10 Wrong Answer 1ms 516.0 KiB

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-10-03 13:10:31
Judged By
Score
0
Total Time
1ms
Peak Memory
516.0 KiB