7 kyu
Deodorant Evaporator
719 of 27,471g964
Description:
This program tests the life of an evaporator containing a gas.
We know the content of the evaporator (content in ml), the percentage of foam or gas lost every day (evap_per_day) and the threshold (threshold) in percentage beyond which the evaporator is no longer useful. All numbers are strictly positive.
The program reports the nth day (as an integer) on which the evaporator will be out of use.
Example:
evaporator(10, 10, 5) -> 29
Note:
Content is in fact not necessary in the body of the function "evaporator", you can use it or not use it, as you wish. Some people might prefer to reason with content, some other with percentages only. It's up to you but you must keep it as a parameter because the tests have it as an argument.
Fundamentals
Stats:
Created | Mar 16, 2015 |
Published | Mar 16, 2015 |
Warriors Trained | 76745 |
Total Skips | 16738 |
Total Code Submissions | 89241 |
Total Times Completed | 27471 |
Ruby Completions | 719 |
Python Completions | 6258 |
Java Completions | 3566 |
C# Completions | 1683 |
Clojure Completions | 308 |
JavaScript Completions | 5616 |
Haskell Completions | 328 |
CoffeeScript Completions | 56 |
Elixir Completions | 288 |
TypeScript Completions | 594 |
C++ Completions | 2177 |
PHP Completions | 1098 |
Crystal Completions | 22 |
F# Completions | 130 |
C Completions | 1339 |
R Completions | 266 |
Shell Completions | 127 |
OCaml Completions | 87 |
Fortran Completions | 35 |
Julia Completions | 58 |
Scala Completions | 227 |
PowerShell Completions | 199 |
Kotlin Completions | 1225 |
Go Completions | 1042 |
Nim Completions | 32 |
Rust Completions | 560 |
Racket Completions | 59 |
Dart Completions | 659 |
Forth Completions | 25 |
Haxe Completions | 24 |
Pascal Completions | 51 |
Perl Completions | 49 |
Elm Completions | 19 |
D Completions | 12 |
Erlang Completions | 23 |
Prolog Completions | 15 |
Total Stars | 522 |
% of votes with a positive feedback rating | 78% of 3236 |
Total "Very Satisfied" Votes | 2105 |
Total "Somewhat Satisfied" Votes | 812 |
Total "Not Satisfied" Votes | 319 |