QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#734248 | #4294. Bacteria | riad_alarefi# | WA | 15ms | 10540kb | Python3 | 511b | 2024-11-11 07:45:42 | 2024-11-11 07:45:43 |
Judging History
answer
def calculate_commission(k):
# Base commission is 25 tugriks plus 1% of the sum transferred
commission = 25 + (k * 0.01)
# The commission is never smaller than 100 tugriks and cannot exceed 2000 tugriks
if commission < 100:
commission = 100
elif commission > 2000:
commission = 2000
return f"{commission:.2f}"
if __name__ == "__main__":
import sys
input = sys.stdin.read
k = int(input().strip())
print(calculate_commission(k))
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 15ms
memory: 10540kb
input:
3
output:
100.00
result:
wrong answer Line [name=answer] equals to "100.00", doesn't correspond to pattern "[0-1]{1,2000000}"