DCEPC13E - World Cup 2015

no tags 

Amit is a big fan of cricket. His friend Subham challenges him to guess the total score at some points in an inning of an ODI match. If his guesses will be correct he will get a chance to watch the world cup final in MCG. Now, Amit being a big fan of cricket don't want to miss this opportunity. So, he first analyses some previous matches and comes to following fact: on an average, in a 50-over inning, a team plays 120 balls for singles, 30 for doubles, 30 for fours, 10 for triples, 10 for sixes, 10 for loss of wicket and leaves remaining 90. Now, he tells you this fact and asks you to tell the expected score. Being a very good programmer, your task is to maximize Amit's chances to win this challenge.

Note: 0, 1, 2, 3, 4, 6 and wkt are the only possible outcomes of every ball bowled in the inning.

For those who are not familiar with cricket game: An over consist of 6 balls. Inning ends if either overs are finished or team has lost all the 10 wickets.

Input

There is a single positive integer T on the first line of input. It stands for the number of queries.

Each query consists of an integer N which stands for over number at which you need to guess the team total.

Output

For every query output the expected team total in a single line. Format for total: runs/wkts.

Note: print the nearest integer to the decimal.

Constraints

1 <= T <= 10

1 <= N <= 50

Example

Input:
2
1
2

Output:
8/0
16/0

hide comments
aboba: 2023-11-09 20:26:57

author is idiot

Jacob Plachta: 2015-12-22 13:32:05

Problem needs clarification, at least regarding rounding. Moving to Tutorial anyway, as it's too simple.

shubhankaryash: 2015-05-24 15:57:23

plz give tricky cases, failing on 4th test case

Ashfaque: 2015-04-01 07:44:01

please clarify the rounding off that has been used. and a few more test cases would be really helpful.

ashish jaiswal: 2015-03-25 22:09:58

more test case plz..for n>5

Ognjen Arsenijevic: 2015-03-17 20:10:10

@dce coders can you explain test cases?

LASER: 2015-03-17 17:42:46

Clarify the rounding off..

utkarsha gaumat: 2015-03-16 20:27:08

what is the answer for n=5??

ayushi agarwal: 2015-03-16 14:11:14

can you please give a test case for n=3?

sangeet asthana: 2015-03-12 19:40:12

Please elaborate on how the score is 8/0 after 1 over


Added by:dce coders
Date:2015-03-06
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:MAWK BC C-CLANG C NCSHARP CSHARP C++ 4.3.2 CPP CPP14 CPP14-CLANG C99 COFFEE D-CLANG D-DMD DART ELIXIR FANTOM FORTH JAVA JULIA KTLN NIM OBJC OBJC-CLANG OCT PICO PROLOG PYTHON PYPY3 PYTHON3 PY_NBC R RACKET RUST CHICKEN SQLITE SWIFT UNLAMBDA