Submit | All submissions | Best solutions | Back to list |
DCEPC13E - World Cup 2015 |
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
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 |
hide comments
|
|||||
2023-11-09 20:26:57
author is idiot |
|||||
2015-12-22 13:32:05 Jacob Plachta
Problem needs clarification, at least regarding rounding. Moving to Tutorial anyway, as it's too simple. |
|||||
2015-05-24 15:57:23 shubhankaryash
plz give tricky cases, failing on 4th test case |
|||||
2015-04-01 07:44:01 Ashfaque
please clarify the rounding off that has been used. and a few more test cases would be really helpful. |
|||||
2015-03-25 22:09:58 ashish jaiswal
more test case plz..for n>5 |
|||||
2015-03-17 20:10:10 Ognjen Arsenijevic
@dce coders can you explain test cases? |
|||||
2015-03-17 17:42:46 LASER
Clarify the rounding off.. |
|||||
2015-03-16 20:27:08 utkarsha gaumat
what is the answer for n=5?? |
|||||
2015-03-16 14:11:14 ayushi agarwal
can you please give a test case for n=3? |
|||||
2015-03-12 19:40:12 sangeet asthana
Please elaborate on how the score is 8/0 after 1 over |