How much time passes when your hand is on a hot stove? (retired)
Description:
Einstein said, "Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute."
Given a list of time tuples (real time minutes, time perception factor), return a tuple of two numbers: the total number of real time minutes, and the total number of perceived minutes.
E.g. [(5, 0.5), (10, 3)] -> (15, 32.5)
Description
The perception factor indicates the rate at which you perceive time passing. A factor of 0.5 means time is passing twice as fast for you; for every real time minute you perceive half a minute. A factor of 2.0 means time is twice as slow for you; for every real time minute you perceive 2 minutes. A factor of zero means you don't perceive any time passing (e.g. you're sleeping). Factors are floats from zero to 1 (fast) or integers from 1 to 60 (slow). A factor of 1 (float or int) means you perceive real time unchanged.
Example:
Input [(5, 0.5), (10, 3)] indicates two time events: 5 real time minutes pass you perceive at a factor of 0.5 (or 2.5 perceived minutes), followed by 10 real time minutes you perceive at a factor of 3 (or 30 perceived minutes). In this case, return (15, 32.5), a tuple of 15 total real time minutes and 32.5 total perceived minutes.
Margin of error on final perceived minutes: 1e-2
āš„ā¤ Have fun!
My friend doesn't like you! I don't like you either. (Retired Kata)
Similar Kata:
Stats:
Created | Oct 11, 2024 |
Warriors Trained | 13 |
Total Skips | 0 |
Total Code Submissions | 48 |
Total Times Completed | 11 |
Python Completions | 11 |
Total Stars | 0 |
% of votes with a positive feedback rating | 36% of 7 |
Total "Very Satisfied" Votes | 1 |
Total "Somewhat Satisfied" Votes | 3 |
Total "Not Satisfied" Votes | 3 |
Total Rank Assessments | 7 |
Average Assessed Rank | 8 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |