QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#345739 | #8308. Artifacts | black_moonrise# | AC ✓ | 0ms | 3944kb | C++14 | 1.0kb | 2024-03-07 14:11:02 | 2024-03-07 14:11:03 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
const int MAXN = 1e5 + 5;
int main() {
double atk[2] = {0, 0};
double crt[2] = {0, 0};
for (int i = 1; i <= 25; i++) {
static char s[MAXN];
int len = 0; char c = getchar();
while (c != -1 && c != '\n') {
s[++len] = c;
c = getchar();
}
double value = 0;
s[len + 1] = 0;
if (s[1] == 'A' && s[2] == 'T' && s[3] == 'K') {
if (s[4] == '+') {
sscanf(s + 5, "%lf", &value);
atk[0] += value;
} else {
s[len] = 0;
sscanf(s + 10, "%lf", &value);
atk[1] += value;
}
}
if (s[1] == 'C' && s[2] == 'r' && s[3] == 'i' && s[4] == 't') {
s[len] = 0;
if (s[6] == 'R') {
sscanf(s + 11, "%lf", &value);
crt[1] += value;
} else {
sscanf(s + 15, "%lf", &value);
crt[0] += value;
}
}
}
crt[0] += 50;
crt[1] += 5;
crt[1] = min(crt[1], 100.0);
crt[0] /= 100;
crt[1] /= 100;
atk[1] /= 100;
printf("%.10lf\n", (1500 * (1 + atk[1]) + atk[0]) * (crt[1] * (1 + crt[0]) + (1 - crt[1]) * 1));
return 0;
}
这程序好像有点Bug,我给组数据试试?
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3856kb
input:
ATK+10.00 ATK Rate+10% Crit Rate+10.00% HP+10.00 DEF Rate+10.00% Energy Recharge Rate+10.00% ATK+10.00 Crit Rate+10.00% Crit DMG Rate+10.00% DEF Rate+10% ATK+10.00 ATK Rate+10.00% Elemental DMG Rate+10% Crit DMG Rate+10.00% Crit Rate+10.00% Crit DMG Rate+10.00% ATK Rate+10% Healing Bonus Rate+10.00%...
output:
2739.2000000000
result:
ok found '2739.2000000', expected '2739.2000000', error '0.0000000'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3856kb
input:
HP Rate+27.41% Crit Rate+26.52% Physical DMG Rate+23.69% ATK Rate+11.52% Energy Recharge Rate+84.47% Physical DMG Rate+20.19% ATK+185.70 Energy Recharge Rate+29.72% Crit DMG Rate+15.33% DEF Rate+23.24% Elemental DMG Rate+29.59% Elemental Mastery+167.07 Physical DMG Rate+18.37% Crit Rate+35.93% DEF R...
output:
4183.2907520682
result:
ok found '4183.2907521', expected '4183.2907521', error '0.0000000'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3876kb
input:
Energy Recharge Rate+11.35% ATK+222.46 Crit Rate+12.34% Healing Bonus Rate+23.93% HP Rate+75.85% DEF Rate+13.29% Crit DMG Rate+99.00% ATK+235.26 Elemental DMG Rate+22.28% HP Rate+32.33% Energy Recharge Rate+13.30% Elemental Mastery+353.60 Elemental DMG Rate+49.19% Healing Bonus Rate+18.88% Crit Rate...
output:
6346.9602000000
result:
ok found '6346.9602000', expected '6346.9602000', error '0.0000000'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3852kb
input:
ATK Rate+28.05% Elemental DMG Rate+17.97% ATK+983.00 Energy Recharge Rate+35.63% Physical DMG Rate+67.23% Crit DMG Rate+63.95% ATK+123.00 Crit Rate+17.33% Energy Recharge Rate+21.90% Physical DMG Rate+29.56% Crit DMG Rate+29.78% Elemental Mastery+231.33 Energy Recharge Rate+24.24% Physical DMG Rate+...
output:
5875.9002680075
result:
ok found '5875.9002680', expected '5875.9002680', error '0.0000000'
Test #5:
score: 0
Accepted
time: 0ms
memory: 3856kb
input:
ATK Rate+23.74% Physical DMG Rate+27.12% Healing Bonus Rate+25.46% Elemental DMG Rate+13.06% Elemental Mastery+291.43 HP Rate+78.72% ATK Rate+13.18% Physical DMG Rate+14.93% Elemental DMG Rate+11.61% HP+310.78 ATK+648.60 HP+339.90 Crit DMG Rate+88.66% ATK Rate+23.54% DEF Rate+74.22% ATK Rate+18.60% ...
output:
6213.9495188850
result:
ok found '6213.9495189', expected '6213.9495189', error '0.0000000'
Test #6:
score: 0
Accepted
time: 0ms
memory: 3852kb
input:
HP+194.26 HP Rate+35.08% Healing Bonus Rate+17.16% Energy Recharge Rate+22.55% ATK+187.96 ATK Rate+93.50% DEF Rate+26.23% HP+125.37 Physical DMG Rate+13.21% Crit DMG Rate+32.60% Elemental DMG Rate+15.96% HP Rate+16.43% ATK Rate+26.26% ATK+129.22 HP+224.60 Crit DMG Rate+89.53% DEF Rate+20.81% Element...
output:
6637.8828054092
result:
ok found '6637.8828054', expected '6637.8828054', error '0.0000000'
Test #7:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
ATK+336.40 Physical DMG Rate+32.00% HP Rate+58.08% Crit Rate+21.88% ATK Rate+17.93% HP Rate+24.50% Elemental DMG Rate+25.36% Crit DMG Rate+63.43% Healing Bonus Rate+20.99% Energy Recharge Rate+29.83% Physical DMG Rate+32.44% Crit DMG Rate+32.63% ATK+128.14 HP Rate+28.21% DEF Rate+10.00% Elemental Ma...
output:
6692.5613340000
result:
ok found '6692.5613340', expected '6692.5613340', error '0.0000000'
Test #8:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
Energy Recharge Rate+10.80% Physical DMG Rate+21.82% Crit Rate+57.20% Elemental DMG Rate+87.74% Healing Bonus Rate+30.87% DEF Rate+12.30% Crit DMG Rate+19.57% Crit Rate+77.41% Energy Recharge Rate+13.51% Physical DMG Rate+28.68% Elemental Mastery+213.90 Elemental DMG Rate+97.35% Physical DMG Rate+28...
output:
3275.5744200000
result:
ok found '3275.5744200', expected '3275.5744200', error '0.0000000'
Test #9:
score: 0
Accepted
time: 0ms
memory: 3880kb
input:
ATK+781.30 Physical DMG Rate+34.51% Crit Rate+93.21% Crit DMG Rate+15.01% DEF Rate+50.21% ATK+300.68 ATK Rate+23.79% HP+796.80 Crit DMG Rate+76.37% DEF Rate+10.97% DEF Rate+21.55% ATK Rate+31.10% Elemental DMG Rate+27.44% Crit DMG Rate+13.89% Healing Bonus Rate+26.51% ATK+312.37 ATK Rate+16.45% Phys...
output:
12168.7020850000
result:
ok found '12168.7020850', expected '12168.7020850', error '0.0000000'
Test #10:
score: 0
Accepted
time: 0ms
memory: 3880kb
input:
Crit Rate+63.34% Energy Recharge Rate+38.91% DEF Rate+13.34% Crit DMG Rate+16.63% ATK+303.35 ATK+958.30 ATK Rate+75.00% Elemental Mastery+888.50 Crit DMG Rate+92.63% DEF Rate+83.40% ATK+266.30 DEF Rate+85.97% Energy Recharge Rate+25.67% Physical DMG Rate+72.92% Crit Rate+18.34% HP+105.69 Crit Rate+1...
output:
15301.1457537510
result:
ok found '15301.1457538', expected '15301.1457538', error '0.0000000'
Test #11:
score: 0
Accepted
time: 0ms
memory: 3884kb
input:
Crit DMG Rate+52.99% ATK Rate+41.99% HP Rate+25.23% ATK+138.50 DEF Rate+21.84% ATK+214.59 ATK Rate+25.59% Energy Recharge Rate+25.91% Elemental DMG Rate+13.68% DEF Rate+19.96% DEF Rate+20.82% ATK+288.22 HP+146.03 Crit DMG Rate+28.89% ATK Rate+19.18% Crit Rate+19.04% Healing Bonus Rate+20.70% DEF Rat...
output:
6040.6155713022
result:
ok found '6040.6155713', expected '6040.6155713', error '0.0000000'
Test #12:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
ATK+426.30 ATK Rate+45.08% Crit Rate+16.37% Physical DMG Rate+18.91% Elemental DMG Rate+13.34% HP Rate+56.60% Physical DMG Rate+10.91% Crit Rate+10.17% Crit DMG Rate+18.09% HP+315.87 ATK Rate+15.02% ATK+162.79 Crit Rate+35.33% Crit DMG Rate+17.71% DEF Rate+20.02% ATK+275.10 Crit Rate+28.23% ATK Rate...
output:
11761.0253077680
result:
ok found '11761.0253078', expected '11761.0253078', error '0.0000000'
Test #13:
score: 0
Accepted
time: 0ms
memory: 3884kb
input:
ATK+308.00 Crit Rate+48.60% ATK Rate+29.64% Crit DMG Rate+20.20% DEF Rate+27.04% ATK Rate+23.50% Crit Rate+17.54% Healing Bonus Rate+10.90% Crit DMG Rate+32.50% Elemental DMG Rate+30.83% Elemental Mastery+838.40 ATK Rate+20.67% Crit Rate+28.33% ATK+189.80 Elemental DMG Rate+69.35% ATK+442.20 ATK Rat...
output:
9911.5181200000
result:
ok found '9911.5181200', expected '9911.5181200', error '0.0000000'
Test #14:
score: 0
Accepted
time: 0ms
memory: 3868kb
input:
ATK+204.50 Healing Bonus Rate+51.69% Crit Rate+20.77% Elemental Mastery+495.60 Crit DMG Rate+18.55% Healing Bonus Rate+26.08% ATK+285.60 Crit Rate+27.93% DEF Rate+41.46% Crit DMG Rate+96.83% ATK+257.90 ATK Rate+81.25% Energy Recharge Rate+17.26% Crit Rate+78.04% DEF Rate+77.73% ATK+128.92 ATK Rate+6...
output:
18926.5300980000
result:
ok found '18926.5300980', expected '18926.5300980', error '0.0000000'
Test #15:
score: 0
Accepted
time: 0ms
memory: 3876kb
input:
ATK+1000.00 ATK Rate+100.00% Crit DMG Rate+100.00% Crit Rate+100.00% HP+1000.00 Physical DMG Rate+100.00% DEF Rate+100.00% HP+1000.00 Crit DMG Rate+100.00% ATK Rate+100.00% HP Rate+100.00% ATK Rate+100.00% DEF Rate+100.00% Physical DMG Rate+100.00% Crit DMG Rate+100.00% Energy Recharge Rate+100.00% ...
output:
61750.0000000000
result:
ok found '61750.0000000', expected '61750.0000000', error '0.0000000'
Test #16:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
ATK+1000.00 ATK Rate+100.00% DEF Rate+100.00% Crit DMG Rate+100.00% Crit Rate+100.00% Elemental DMG Rate+100.00% HP Rate+100.00% Crit Rate+100.00% Crit DMG Rate+100.00% DEF Rate+100.00% ATK+1000.00 ATK Rate+100.00% Crit Rate+100.00% Crit DMG Rate+100.00% Energy Recharge Rate+100.00% ATK+1000.00 HP R...
output:
58500.0000000000
result:
ok found '58500.0000000', expected '58500.0000000', error '0.0000000'
Test #17:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
DEF Rate+0.00% ATK Rate+0.00% Crit Rate+0% Crit DMG Rate+0.00% ATK+0 Healing Bonus Rate+0.00% ATK Rate+0.00% Crit Rate+0.00% ATK+0.00 DEF Rate+0% ATK Rate+0% ATK+0.00 Crit Rate+0% Crit DMG Rate+0.00% Healing Bonus Rate+0.00% ATK Rate+0% ATK+0 Crit Rate+0.00% HP Rate+0.00% DEF Rate+0% Healing Bonus R...
output:
1537.5000000000
result:
ok found '1537.5000000', expected '1537.5000000', error '0.0000000'
Test #18:
score: 0
Accepted
time: 0ms
memory: 3912kb
input:
Crit Rate+100% ATK Rate+100% Healing Bonus Rate+100.00% Crit DMG Rate+100% DEF Rate+100% ATK+1000 ATK Rate+100% Crit Rate+100% DEF Rate+100.00% Healing Bonus Rate+100.00% ATK+1000.00 ATK Rate+100% Crit DMG Rate+100.00% Elemental DMG Rate+100% Elemental Mastery+1000 ATK+1000.00 Elemental Mastery+1000...
output:
47250.0000000000
result:
ok found '47250.0000000', expected '47250.0000000', error '0.0000000'
Test #19:
score: 0
Accepted
time: 0ms
memory: 3944kb
input:
Energy Recharge Rate+100.00% Physical DMG Rate+100.00% Crit Rate+100% Crit DMG Rate+100.00% HP+1000 Crit DMG Rate+100.00% HP Rate+100% Crit Rate+100.00% ATK+1000.00 DEF Rate+100% ATK+1000 ATK Rate+100% Elemental Mastery+1000.00 Crit Rate+100.00% Elemental DMG Rate+100% ATK+1000 ATK Rate+100% Healing...
output:
35000.0000000000
result:
ok found '35000.0000000', expected '35000.0000000', error '0.0000000'
Test #20:
score: 0
Accepted
time: 0ms
memory: 3884kb
input:
ATK+139 ATK Rate+20.88% Crit Rate+26.28% Elemental DMG Rate+14.62% DEF Rate+51.51% ATK+283 HP Rate+28% Elemental DMG Rate+25.07% Crit DMG Rate+27.48% DEF Rate+68% ATK+309.13 Elemental DMG Rate+12.83% DEF Rate+24.31% Elemental Mastery+631 HP Rate+15% HP+144 ATK Rate+22.47% Crit Rate+28% Crit DMG Rate...
output:
5502.5468942700
result:
ok found '5502.5468943', expected '5502.5468943', error '0.0000000'
Test #21:
score: 0
Accepted
time: 0ms
memory: 3876kb
input:
Healing Bonus Rate+14.33% Elemental DMG Rate+60% HP Rate+18.49% ATK+166.05 DEF Rate+20% HP Rate+21.95% Energy Recharge Rate+30% HP+131 ATK+195 DEF Rate+22.49% HP+150.74 ATK Rate+22% Elemental DMG Rate+24.34% Crit DMG Rate+29% ATK+317 HP Rate+11% ATK Rate+31% Elemental DMG Rate+23% Crit DMG Rate+11.8...
output:
3140.7300200000
result:
ok found '3140.7300200', expected '3140.7300200', error '0.0000000'
Test #22:
score: 0
Accepted
time: 0ms
memory: 3916kb
input:
ATK+146.39 Physical DMG Rate+23% Healing Bonus Rate+87.81% HP+145.10 DEF Rate+21% Healing Bonus Rate+60.67% ATK Rate+13% Crit Rate+38.76% Crit DMG Rate+17% Elemental Mastery+201.41 HP Rate+28% Elemental DMG Rate+26% Crit Rate+10.90% Healing Bonus Rate+14.59% DEF Rate+62.00% ATK+201 ATK Rate+27% Crit...
output:
4341.7182022500
result:
ok found '4341.7182023', expected '4341.7182023', error '0.0000000'
Test #23:
score: 0
Accepted
time: 0ms
memory: 3876kb
input:
DEF Rate+14.99% HP+248 Crit Rate+16.41% Crit DMG Rate+31% Elemental Mastery+126.87 HP+113 ATK Rate+22.26% Healing Bonus Rate+26% DEF Rate+28.15% ATK+268 DEF Rate+21% HP Rate+16.12% Crit Rate+21% Elemental DMG Rate+23.49% ATK+166 ATK+650 Elemental DMG Rate+12.47% Healing Bonus Rate+14% Energy Recharg...
output:
5205.8658683000
result:
ok found '5205.8658683', expected '5205.8658683', error '0.0000000'
Test #24:
score: 0
Accepted
time: 0ms
memory: 3868kb
input:
HP+153.43 ATK Rate+26.07% Healing Bonus Rate+24% Physical DMG Rate+14.40% DEF Rate+43% ATK+165.75 ATK Rate+31.40% Crit DMG Rate+15% Crit Rate+65% HP+733.00 ATK+736 Elemental DMG Rate+62.92% Crit Rate+30.26% Crit DMG Rate+23% HP Rate+32.52% ATK+257 Crit Rate+30.98% HP Rate+91.13% ATK Rate+32% DEF Rat...
output:
8836.7144000000
result:
ok found '8836.7144000', expected '8836.7144000', error '0.0000000'
Test #25:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
Healing Bonus Rate+15.78% Elemental Mastery+277 Crit Rate+82% Crit DMG Rate+20% HP+101.47 ATK+313 ATK Rate+26% Elemental DMG Rate+22.09% Crit DMG Rate+12% DEF Rate+25% Energy Recharge Rate+22.53% DEF Rate+21.99% Crit Rate+95.97% Crit DMG Rate+16% ATK Rate+11.50% ATK+536 HP+295.37 Crit DMG Rate+31.92...
output:
10923.7312000000
result:
ok found '10923.7312000', expected '10923.7312000', error '0.0000000'
Test #26:
score: 0
Accepted
time: 0ms
memory: 3880kb
input:
ATK Rate+16.09% Healing Bonus Rate+12% Energy Recharge Rate+24% Crit DMG Rate+32.72% Physical DMG Rate+10.98% ATK+155 Crit DMG Rate+99% Elemental Mastery+257 ATK Rate+97% Elemental DMG Rate+23% Crit DMG Rate+10% ATK Rate+58.88% Crit Rate+18.07% DEF Rate+95.50% Elemental Mastery+132 Healing Bonus Rat...
output:
15458.4757680000
result:
ok found '15458.4757680', expected '15458.4757680', error '0.0000000'
Test #27:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
ATK+164 Crit Rate+30% ATK Rate+14% Elemental DMG Rate+30.62% DEF Rate+12% ATK Rate+32.34% ATK+261 Elemental Mastery+164.36 HP+720 DEF Rate+21% Elemental Mastery+306.61 Crit Rate+95.77% Energy Recharge Rate+26.54% Crit DMG Rate+19% Healing Bonus Rate+14.83% Healing Bonus Rate+18% ATK Rate+20.97% Crit...
output:
6484.7135000000
result:
ok found '6484.7135000', expected '6484.7135000', error '0.0000000'
Test #28:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
ATK+167.09 ATK Rate+14.72% Physical DMG Rate+45% Crit DMG Rate+28.53% Crit Rate+12.64% ATK+164.54 ATK Rate+95% HP Rate+71.65% Healing Bonus Rate+47% Physical DMG Rate+18% Elemental DMG Rate+18% HP Rate+13% DEF Rate+22.40% Crit DMG Rate+41% Physical DMG Rate+16% ATK+263.51 ATK Rate+16.68% Elemental M...
output:
5709.6281894565
result:
ok found '5709.6281895', expected '5709.6281895', error '0.0000000'
Test #29:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
ATK+170 Healing Bonus Rate+32% Crit Rate+28% Crit DMG Rate+26.43% Elemental Mastery+134.78 ATK+571 ATK Rate+25.69% Crit Rate+31% Elemental Mastery+212.40 Healing Bonus Rate+16.08% Physical DMG Rate+60% ATK Rate+17% Crit Rate+10.71% Crit DMG Rate+22.07% DEF Rate+18% ATK+218.80 ATK Rate+12.40% Crit Ra...
output:
6983.5277500000
result:
ok found '6983.5277500', expected '6983.5277500', error '0.0000000'
Test #30:
score: 0
Accepted
time: 0ms
memory: 3856kb
input:
ATK+172.81 Healing Bonus Rate+44.40% Elemental Mastery+491.00 HP Rate+59% ATK Rate+23.55% Energy Recharge Rate+29% ATK Rate+16% Crit DMG Rate+22.71% Physical DMG Rate+18.68% DEF Rate+47.07% ATK+282.30 HP Rate+13.92% DEF Rate+17.97% ATK Rate+47% Crit Rate+56% HP Rate+20% ATK+181 Elemental DMG Rate+15...
output:
7269.3914494464
result:
ok found '7269.3914494', expected '7269.3914494', error '0.0000000'
Extra Test:
score: 0
Extra Test Passed