Submit | All submissions | Best solutions | Back to list |
Problem hidden on 2013-07-11 15:46:39 by Mitch Schwartz
BIRIKHOR - Biri Khao Gollay Jao |
Humayun a famous smoker whom I saw used to smoking opposite to Dhaka City College. He is a smoker but not an Eve-teaser. If he has some money he thinks for a cigarette not other foods even he had not been completed his lunch. As a regular smoker he gets some discount for the stores. For every five cigarettes he gets a discount of One taka. Though he only smokes Marlboro each of this cigarette costs 9 taka.
You are given the amount of cigarette Humayun bought at the start of the day. You have to find the total amount of discount got by Humayun in a day and total amount of Cigarette he smokes on that day.
Input
Input starts with an integer T (≤ 100), denoting the number of test cases.
Each case contains an integer N (≤ 1000), denoting the amount of cigarette Humayun bought at the start of the day.
Output
For each case, print the total amount of discount and total amount of Cigarette separated by space.
The output will fit in a 32-bit integer.
Example
Input: 1
50 Output: Case 1: 10 51
Added by: | Md. Khirul Islam |
Date: | 2013-06-15 |
Time limit: | 1s |
Source limit: | 20000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | ASM32-GCC MAWK BC C-CLANG C NCSHARP C++ 4.3.2 CPP CPP14 CPP14-CLANG COBOL COFFEE D-CLANG D-DMD DART ELIXIR FANTOM FORTH GOSU GRV JS-MONKEY JULIA KTLN NIM OBJC OBJC-CLANG OCT PICO PS PROLOG PYPY PYPY3 R RACKET RUST CHICKEN SQLITE SWIFT UNLAMBDA VB.NET |
hide comments
2013-07-11 13:49:33 Mitch Schwartz
@prateek: Thanks for catching another hidden classical problem, it's in tutorial now. I reviewed all recent hidden problems yesterday but apparently missed this one. |
|
2013-07-11 12:37:29 pika_pika
@Md. Khirul Islam . please move to tutorial. not worth this kind of points for such a question. 1.7 pts in 1st AC while had 0.1 pts in 5+WAs.. please move to tutorial. :) |
|
2013-06-15 19:08:29 Francky
There's no reason for langage restrictions, please open to all or justify your choice. Please explain SIGXFSZ problem. Hidden waiting for that. |
|
2013-06-15 15:33:12 Pritam Bhattacharya
same here .. SIGXFSZ error!! |
|
2013-06-15 15:30:19 nai)(
strange!! getting SIGXFSZ error :/ |