Cody

Problem 281. Acid and water

Solution 1323868

Submitted on 1 Nov 2017 by SUBROTA HALDER
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
R=1; M=1; W=99; assert(tank(R,M)>W)

W = 100 i = 1 W = 99.9000 W = 99.8001 W = 99.7003 W = 99.6006 W = 99.5010 W = 99.4015 W = 99.3021 W = 99.2028 W = 99.1036 W = 99.0045

2   Pass
R=2; M=2; W=96; assert(tank(R,M)>W)

W = 100 i = 1 W = 99.8000 W = 99.6004 W = 99.4012 W = 99.2024 W = 99.0040 W = 98.8060 W = 98.6084 W = 98.4112 W = 98.2143 W = 98.0179 W = 97.8219 W = 97.6262 W = 97.4310 W = 97.2361 W = 97.0416 W = 96.8476 W = 96.6539 W = 96.4606 W = 96.2676 W = 96.0751

3   Pass
R=10; M=10; W=36; assert(tank(R,M)>W)

W = 100 i = 1 W = 99 W = 98.0100 W = 97.0299 W = 96.0596 W = 95.0990 W = 94.1480 W = 93.2065 W = 92.2745 W = 91.3517 W = 90.4382 W = 89.5338 W = 88.6385 W = 87.7521 W = 86.8746 W = 86.0058 W = 85.1458 W = 84.2943 W = 83.4514 W = 82.6169 W = 81.7907 W = 80.9728 W = 80.1631 W = 79.3614 W = 78.5678 W = 77.7821 W = 77.0043 W = 76.2343 W = 75.4719 W = 74.7172 W = 73.9700 W = 73.2303 W = 72.4980 W = 71.7731 W = 71.0553 W = 70.3448 W = 69.6413 W = 68.9449 W = 68.2555 W = 67.5729 W = 66.8972 W = 66.2282 W = 65.5659 W = 64.9103 W = 64.2612 W = 63.6185 W = 62.9824 W = 62.3525 W = 61.7290 W = 61.1117 W = 60.5006 W = 59.8956 W = 59.2966 W = 58.7037 W = 58.1166 W = 57.5355 W = 56.9601 W = 56.3905 W = 55.8266 W = 55.2683 W = 54.7157 W = 54.1685 W = 53.6268 W = 53.0906 W = 52.5596 W = 52.0341 W = 51.5137 W = 50.9986 W = 50.4886 W = 49.9837 W = 49.4839 W = 48.9890 W = 48.4991 W = 48.0141 W = 47.5340 W = 47.0587 W = 46.5881 W = 46.1222 W = 45.6610 W = 45.2044 W = 44.7523 W = 44.3048 W = 43.8618 W = 43.4231 W = 42.9889 W = 42.5590 W = 42.1334 W = 41.7121 W = 41.2950 W = 40.8820 W = 40.4732 W = 40.0685 W = 39.6678 W = 39.2711 W = 38.8784 W = 38.4896 W = 38.1047 W = 37.7237 W = 37.3464 W = 36.9730 W = 36.6032

4   Pass
R=15; M=20; W=5; assert(tank(R,M)<W)

W = 100 i = 1 W = 98 W = 96.0400 W = 94.1192 W = 92.2368 W = 90.3921 W = 88.5842 W = 86.8126 W = 85.0763 W = 83.3748 W = 81.7073 W = 80.0731 W = 78.4717 W = 76.9022 W = 75.3642 W = 73.8569 W = 72.3798 W = 70.9322 W = 69.5135 W = 68.1233 W = 66.7608 W = 65.4256 W = 64.1171 W = 62.8347 W = 61.5780 W = 60.3465 W = 59.1395 W = 57.9568 W = 56.7976 W = 55.6617 W = 54.5484 W = 53.4575 W = 52.3883 W = 51.3405 W = 50.3137 W = 49.3075 W = 48.3213 W = 47.3549 W = 46.4078 W = 45.4796 W = 44.5700 W = 43.6786 W = 42.8051 W = 41.9490 W = 41.1100 W = 40.2878 W = 39.4820 W = 38.6924 W = 37.9185 W = 37.1602 W = 36.4170 W = 35.6886 W = 34.9749 W = 34.2754 W = 33.5899 W = 32.9181 W = 32.2597 W = 31.6145 W = 30.9822 W = 30.3626 W = 29.7553 W = 29.1602 W = 28.5770 W = 28.0055 W = 27.4454 W = 26.8964 W = 26.3585 W = 25.8313 W = 25.3147 W = 24.8084 W = 24.3123 W = 23.8260 W = 23.3495 W = 22.8825 W = 22.4249 W = 21.9764 W = 21.5368 W = 21.1061 W = 20.6840 W = 20.2703 W = 19.8649 W = 19.4676 W = 19.0782 W = 18.6967 W = 18.3227 W = 17.9563 W = 17.5972 W = 17.2452 W = 16.9003 W = 16.5623 W = 16.2311 W = 15.9064 W = 15.5883 W = 15.2765 W = 14.9710 W = 14.6716 W = 14.3782 W = 14.0906 W = 13.8088 W = 13.5326 W = 13.2620 W = 12.9967 W = 12.7368 W = 12.4820 W = 12.2324 W = 11.9878 W = 11.7480 W = 11.5130 W = 11.2828 W = 11.0571 W = 10.8360 W = 10.6193 W = 10.4069 W = 10.1987 W = 9.9948 W = 9.7949 W = 9.5990 W = 9.4070 W = 9.2189 W = 9.0345 W = 8.8538 W = 8.6767 W = 8.5032 W = 8.3331 W = 8.1665 W = 8.0031 W = 7.8431 W = 7.6862 W = 7.5325 W = 7.3818 W = 7.2342 W = 7.0895 W = 6.9477 W = 6.8088 W = 6.6726 W = 6.5391 W = 6.4084 W = 6.2802 W = 6.1546 W = 6.0315 W = 5.9109 W = 5.7926 W = 5.6768 W = 5.5633 W = 5.4520 W = 5.3429 W = 5.2361 W = 5.1314 W = 5.0287 W = 4.9282 W = 4.8296 W = 4.7330 W = 4.6383 W = 4.5456 W = 4.4547 W = 4.3656 W = 4.2783 W = 4.1927 W = 4.1088 W = 4.0267 W = 3.9461 W = 3.8672 W = 3.7899 W = 3.7141 W = 3.6398 W = 3.5670 W = 3.4957 W = 3.4257 W = 3.3572 W = 3.2901 W = 3.2243 W = 3.1598 W = 3.0966 W = 3.0347 W = 2.9740 W = 2.9145 W = 2.8562 W = 2.7991 W = 2.7431 W = 2.6882 W = 2.6345 W = 2.5818 W = 2.5301 W = 2.4795 W = 2.4300 W = 2.3814 W = 2.3337 W = 2.2871 W = 2.2413 W = 2.1965 W = 2.1526 W = 2.1095 W = 2.0673 W = 2.0260 W = 1.9854 W = 1.9457 W = 1.9068 W = 1.8687 W = 1.8313 W = 1.7947 W = 1.7588

5   Pass
R=7; M=8; W=58; assert(tank(R,M)<W)

W = 100 i = 1 W = 99.2000 W = 98.4064 W = 97.6191 W = 96.8382 W = 96.0635 W = 95.2950 W = 94.5326 W = 93.7764 W = 93.0262 W = 92.2819 W = 91.5437 W = 90.8113 W = 90.0848 W = 89.3642 W = 88.6493 W = 87.9401 W = 87.2365 W = 86.5386 W = 85.8463 W = 85.1596 W = 84.4783 W = 83.8025 W = 83.1320 W = 82.4670 W = 81.8073 W = 81.1528 W = 80.5036 W = 79.8595 W = 79.2207 W = 78.5869 W = 77.9582 W = 77.3345 W = 76.7159 W = 76.1021 W = 75.4933 W = 74.8894 W = 74.2903 W = 73.6959 W = 73.1064 W = 72.5215 W = 71.9413 W = 71.3658 W = 70.7949 W = 70.2285 W = 69.6667 W = 69.1094 W = 68.5565 W = 68.0080 W = 67.4640 W = 66.9243 W = 66.3889 W = 65.8578 W = 65.3309 W = 64.8083 W = 64.2898 W = 63.7755 W = 63.2653 W = 62.7591 W = 62.2571 W = 61.7590 W = 61.2649 W = 60.7748 W = 60.2886 W = 59.8063 W = 59.3279 W = 58.8532 W = 58.3824 W = 57.9154 W = 57.4520 W = 56.9924 W = 56.5365 W = 56.0842 W = 55.6355 W = 55.1904 W = 54.7489 W = 54.3109 W = 53.8764 W = 53.4454 W = 53.0178 W = 52.5937