QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#877536 | #9620. osu!mania | galiyuu# | WA | 16ms | 9984kb | Python3 | 809b | 2025-01-31 23:12:14 | 2025-01-31 23:12:14 |
Judging History
answer
import decimal
decimal.getcontext().prec = 4
tc = int(input())
while tc > 0:
tc -= 1
ppmax = decimal.Decimal(int(input()))
a, b, c, d, e, f = map(int,input().split())
d_a = decimal.Decimal(a)
d_b = decimal.Decimal(b)
d_c = decimal.Decimal(c)
d_d = decimal.Decimal(d)
d_e = decimal.Decimal(e)
d_f = decimal.Decimal(f)
d_all = d_a + d_b + d_c + d_e + d_d + d_f
ans1_1 = 300 * d_a + 300 * d_b + 200 * d_c + 100 * d_d + 50 * d_e + 0 * d_f
ans1_2 = 300 * d_all
print(ans1_1/ans1_2*100,end="% ")
ans2_1 = 320 * d_a + 300 * d_b + 200 * d_c + 100 * d_d + 50 * d_e
ans2_2 = 320 * d_all
ans2_3 = max(decimal.Decimal(0), (ans2_1/ans2_2)-decimal.Decimal(0.8))
print(int(ans2_3 * decimal.Decimal(5) * ppmax))
# 2
# 630
# 3029 2336 377 41 10 61
# 3000
# 20000 10000 0 0 0 0
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 16ms
memory: 9984kb
input:
18 1279 4624 4458 1109 220 103 314 753 3604 3204 391 33 9 29 807 5173 3986 763 84 29 96 718 576 461 60 5 2 7 947 4058 3268 764 169 42 158 568 2660 1731 161 16 6 15 641 4181 3126 656 56 10 43 630 3029 2336 377 41 10 61 529 1991 1354 181 11 9 5 1802 8321 2335 115 19 11 27 1645 3965 1087 41 6 1 13 1688...
output:
91.59% 547 97.34% 541 95.66% 518 97.12% 513 93.34% 499 98.11% 444 96.20% 431 96.24% 423 97.75% 398 99.08% 1597 99.41% 1484 99.12% 1463 98.55% 1250 100% 2688 100% 1792 100% 3000 52.78% 0 0% 0
result:
wrong answer 1st lines differ - expected: '91.54% 543', found: '91.59% 547'