Codeforces Round 118 (Div. 2)


A. Comparing Strings
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
ab
ba
Output
YES
Input
aa
ab
Output
NO
----------------------------------------------------------------------------------------------------
B. Growing Mushrooms
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
2 3 3 50
2 4
4 2
Output
1 15.00
2 15.00
Input
4 1 1 1
544 397
280 101
280 101
693 970
Output
4 1656.07
1 937.03
2 379.99
3 379.99
----------------------------------------------------------------------------------------------------
C. Plant
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
1
Output
3
Input
2
Output
10
----------------------------------------------------------------------------------------------------
D. Mushroom Scientists
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
3
1 1 1
Output
1.0 1.0 1.0
Input
3
2 0 0
Output
3.0 0.0 0.0
----------------------------------------------------------------------------------------------------
E. Clever Fat Rat
time limit per test: 2.5 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
1
1
2
Output
Fat Rat
Input
2
2 2
1 2
4
Output
Cerealguy
Input
2
2 2
1 2
5
Output
Fat Rat
----------------------------------------------------------------------------------------------------
