RC Charging
A capacitor charges from 0 V through resistor from a supply . The time constant is and . Print in milliseconds and at time , both with 3 decimals.
Input
(Ω), (µF), (volts), (seconds).
Output
in ms and .
Constraints
All values positive; ; s.
Sample 1
Input
10000 100 5 1
Output
1000.000 3.161
Sample 2
Input
1000 10 12 0.05
Output
10.000 11.919