QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#734248#4294. Bacteriariad_alarefi#WA 15ms10540kbPython3511b2024-11-11 07:45:422024-11-11 07:45:43

Judging History

你现在查看的是最新测评结果

  • [2024-11-11 07:45:43]
  • 评测
  • 测评结果:WA
  • 用时:15ms
  • 内存:10540kb
  • [2024-11-11 07:45:42]
  • 提交

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}"