Time limit: 1.0s
Memory limit: 64M
was stuck in the never-ending TEJ classes. Being very fast, he finishes all the work the teacher assigned and decides to do some research on operational amplifiers.
realizes that operational amplifiers have a wide variety of uses. He finds out that an ideal operational amplifier would amplify the difference between the non-inverting input (denoted in the diagram with a
+) and the inverting input (denoted in the diagram with a
-), with an infinite gain.
finds out that without a feedback loop, the operational amplifier would only act as a comparator. Since he is only interested in non-inverting amplifiers, he connects the operational amplifier in a negative feedback loop configuration, like so:
wants to be able to calculate the output voltage, given the input voltage and the values of the two resistors. He goes on Wikipedia and finds the formula:
Since he has other work to do, he leaves this task to you. Can you help him solve this problem?
Assume that the operational amplifiers are ideal and do not saturate.
The first and only line of input will contain , , .
Compute and output the value of for the given , and , using the formula described above.
Your answer will be considered correct if it is within a relative or absolute error of .
3 100 120
The output is obtained by .