/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Wrong Answer 26ms 2.996 MiB
#2 Wrong Answer 25ms 2.973 MiB

Code

import sys

input = lambda: sys.stdin.readline().rstrip("\r\n")
rint = lambda: int(input())
rlist = lambda: list(map(int, input().split()))


def solve():
    N, D = rlist()
    A, B = rlist()
    ans = A * min(D, N)
    ans += B * (N - min(D, N))
    return ans


for tc in range(rint()):
    solve()

Information

Submit By
Type
Submission
Problem
P1090 Summer trip
Language
Python 3 (Python 3.12.3)
Submit At
2024-10-03 14:43:11
Judged At
2024-11-11 02:51:21
Judged By
Score
0
Total Time
26ms
Peak Memory
2.996 MiB