QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#734244#4293. Bank Transferriad_alarefiAC ✓14ms10744kbPython3511b2024-11-11 07:41:052024-11-11 07:41:06

Judging History

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

  • [2024-11-11 07:41:06]
  • 评测
  • 测评结果:AC
  • 用时:14ms
  • 内存:10744kb
  • [2024-11-11 07:41:05]
  • 提交

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))

詳細信息

Test #1:

score: 100
Accepted
time: 9ms
memory: 10604kb

input:

20210

output:

227.10

result:

ok 227.10

Test #2:

score: 0
Accepted
time: 5ms
memory: 10664kb

input:

9000

output:

115.00

result:

ok 115.00

Test #3:

score: 0
Accepted
time: 14ms
memory: 10584kb

input:

300000

output:

2000.00

result:

ok 2000.00

Test #4:

score: 0
Accepted
time: 14ms
memory: 10580kb

input:

200

output:

100.00

result:

ok 100.00

Test #5:

score: 0
Accepted
time: 12ms
memory: 10620kb

input:

9999

output:

124.99

result:

ok 124.99

Test #6:

score: 0
Accepted
time: 10ms
memory: 10584kb

input:

10000

output:

125.00

result:

ok 125.00

Test #7:

score: 0
Accepted
time: 14ms
memory: 10648kb

input:

10001

output:

125.01

result:

ok 125.01

Test #8:

score: 0
Accepted
time: 14ms
memory: 10708kb

input:

20000

output:

225.00

result:

ok 225.00

Test #9:

score: 0
Accepted
time: 14ms
memory: 10624kb

input:

20001

output:

225.01

result:

ok 225.01

Test #10:

score: 0
Accepted
time: 7ms
memory: 10700kb

input:

200000

output:

2000.00

result:

ok 2000.00

Test #11:

score: 0
Accepted
time: 8ms
memory: 10628kb

input:

200001

output:

2000.00

result:

ok 2000.00

Test #12:

score: 0
Accepted
time: 14ms
memory: 10576kb

input:

199999

output:

2000.00

result:

ok 2000.00

Test #13:

score: 0
Accepted
time: 7ms
memory: 10676kb

input:

197500

output:

2000.00

result:

ok 2000.00

Test #14:

score: 0
Accepted
time: 14ms
memory: 10704kb

input:

197499

output:

1999.99

result:

ok 1999.99

Test #15:

score: 0
Accepted
time: 9ms
memory: 10616kb

input:

197501

output:

2000.00

result:

ok 2000.00

Test #16:

score: 0
Accepted
time: 12ms
memory: 10640kb

input:

98989

output:

1014.89

result:

ok 1014.89

Test #17:

score: 0
Accepted
time: 14ms
memory: 10700kb

input:

1000000000

output:

2000.00

result:

ok 2000.00

Test #18:

score: 0
Accepted
time: 14ms
memory: 10704kb

input:

56465

output:

589.65

result:

ok 589.65

Test #19:

score: 0
Accepted
time: 10ms
memory: 10704kb

input:

173569

output:

1760.69

result:

ok 1760.69

Test #20:

score: 0
Accepted
time: 6ms
memory: 10580kb

input:

159357

output:

1618.57

result:

ok 1618.57

Test #21:

score: 0
Accepted
time: 14ms
memory: 10612kb

input:

150000

output:

1525.00

result:

ok 1525.00

Test #22:

score: 0
Accepted
time: 2ms
memory: 10612kb

input:

141320

output:

1438.20

result:

ok 1438.20

Test #23:

score: 0
Accepted
time: 13ms
memory: 10528kb

input:

7500

output:

100.00

result:

ok 100.00

Test #24:

score: 0
Accepted
time: 8ms
memory: 10636kb

input:

7499

output:

100.00

result:

ok 100.00

Test #25:

score: 0
Accepted
time: 7ms
memory: 10580kb

input:

7501

output:

100.01

result:

ok 100.01

Test #26:

score: 0
Accepted
time: 7ms
memory: 10624kb

input:

500

output:

100.00

result:

ok 100.00

Test #27:

score: 0
Accepted
time: 6ms
memory: 10708kb

input:

666

output:

100.00

result:

ok 100.00

Test #28:

score: 0
Accepted
time: 11ms
memory: 10584kb

input:

777

output:

100.00

result:

ok 100.00

Test #29:

score: 0
Accepted
time: 14ms
memory: 10744kb

input:

1000

output:

100.00

result:

ok 100.00

Test #30:

score: 0
Accepted
time: 14ms
memory: 10652kb

input:

5000

output:

100.00

result:

ok 100.00