Codeforces Beta Round 9 (Div. 2 Only)


A. Die Roll
time limit per test: 1 second
memory limit per test: 64 megabytes
input: standard input
output: standard output

Examples
Input
4 2
Output
1/2
----------------------------------------------------------------------------------------------------
B. Running Student
time limit per test: 1 second
memory limit per test: 64 megabytes
input: standard input
output: standard output

Examples
Input
4 5 2
0 2 4 6
4 1
Output
3
Input
2 1 1
0 100000
100000 100000
Output
2
----------------------------------------------------------------------------------------------------
C. Hexadecimal's Numbers
time limit per test: 1 second
memory limit per test: 64 megabytes
input: standard input
output: standard output

Examples
Input
10
Output
2
----------------------------------------------------------------------------------------------------
D. How many trees?
time limit per test: 1 second
memory limit per test: 64 megabytes
input: standard input
output: standard output

Examples
Input
3 2
Output
5
Input
3 3
Output
4
----------------------------------------------------------------------------------------------------
E. Interesting Graph and Apples
time limit per test: 1 second
memory limit per test: 64 megabytes
input: standard input
output: standard output

Examples
Input
3 2
1 2
2 3
Output
YES
1
1 3
----------------------------------------------------------------------------------------------------
