Codeforces Round 114 (Div. 2)


A. Wizards and Demonstration
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
10 1 14
Output
1
Input
20 10 50
Output
0
Input
1000 352 146
Output
1108
----------------------------------------------------------------------------------------------------
B. Wizards and Minimal Spell
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
   #   include <cstdio>
using namespace std;
int main     (   ){
puts("Hello # World"); #
#
}
Output
   #   include <cstdio>
usingnamespacestd;intmain(){puts("Hello#World");#
#
}
Input
#
#
Output
#
#
----------------------------------------------------------------------------------------------------
C. Wizards and Trolleybuses
time limit per test: 1 second
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
3 10 10000
0 10
5 11
1000 1
Output
1000.5000000000
1000.5000000000
11000.0500000000
Input
1 2 26
28 29
Output
33.0990195136
----------------------------------------------------------------------------------------------------
D. Wizards and Huge Prize
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
3 1 0
10 20 30
-1 -1 2
Output
0.300000000000
Input
1 1 1
100
123
Output
1.000000000000
----------------------------------------------------------------------------------------------------
E. Wizards and Numbers
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
4
10 21
31 10
0 1
10 30
Output
First
Second
Second
First
----------------------------------------------------------------------------------------------------
