Submit | All submissions | Best solutions | Back to list |
DSH - detective sherlock holmes |
Detective Sherlock Holmes undertook a case, he found a clue against the culprit. He got a clue in lower case letters and he predicts that if he decodes these characters into respective numeric value, then he would find the culprit. the total number of individual numeric values that are greater than q’s numeric value is the required solution. Vexed of solving the case he is asking for your help, so please help him.
Input
- There is several test cases and the last case is contained by “length of clue <= 3”,
- each line contains a string (should contain only lowercase letters) (length of clue is (3 < l <= 26)).
Output
For each test case print two lines, the former containing the numeric value of string and the later containing the total number whose value is greater than q if not then print ”no one.”
Example
Input: aknpz luxo aven abcds out Output: 16 26 20 22 23 1 27 18 21 21 1 16 19 20 20 no one. 16 17 18 19 25 1
Problem Setter:- Farhan khan
Added by: | Khansaab |
Date: | 2016-01-28 |
Time limit: | 0.100s-2s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All except: ADA95 ASM64 C99 D D-DMD GOSU HASK ICK JS-MONKEY NICE NIM PICO PIKE SCALA CHICKEN WHITESPACE |
Resource: | own |
hide comments
|
||||||
2016-07-05 07:49:44
To be honest, not a nice problem with a very unclear description. Each character from 'a' to 'z' has been given some number according to some pattern, which although arbitrary, through sample cases is enough to deduce values for most letters... except 'm' and 't', since as far as I (or anyone in the comments) is aware of there is no indication whether the pattern continues or resets at those points. (m=28, t=26). You have to find how many characters in the input string have a value higher than the value of character 'q'. Read till EOF, ignore the whole 'length of input<=3 deal. |
||||||
2016-06-02 13:01:28 KD
scan till EOF otherwise you will get TLE .........AC after two TLE's -_- |
||||||
2016-05-21 06:31:34 hmp
please explain sample test cases |
||||||
2016-03-23 06:07:19
What are the values of 'm' and 't'? These values cannot be determined with the test cases provided. Two values are possible. EDIT=> m = 28 t = 26 Request to problem setter, please edit problem and add test cases that include these values. Costed me 3 WA's. Also, the last test case is not the input of length 3 or less. Not scanning till EOF will result in TLE. Last edit: 2016-03-23 06:13:12 |
||||||
2016-02-09 11:44:00
Itrate till Eof @harsh .... In java while (in.hasNext ())..... :) |
||||||
2016-02-07 07:52:02
What does this mean: "Second line contains a string" why second REPLY=>bro,try to solve question don't ask meaningless que. and use your brain,u can solve this problem according to test cases yes,I understand that but I am not able to track my error . Its is giving NZEC error ,I am not able to track why.PLs help Last edit: 2016-02-08 17:19:25 |
||||||
2016-02-03 17:12:53
think..............there is already given correspondence value of n ....so according to n think.... |
||||||
2016-02-02 21:53:42
@farhan764 I got the question still a few characters can be misconceived which may lead to wrong answer. The value of 'm' for example. Last edit: 2016-02-02 21:53:58 |
||||||
2016-02-02 09:14:56
q has a specific value,after u changes a to z characters in a specific value according to test case u will find answer........and this the fact u have to find better_clever-according to your name think something extra,u will definitely find some awesome thing so bro...........think and read question again |
||||||
2016-02-01 23:29:38
the problem statement is not clear! what is q? what is meant by numeric value of string here. please explain test case Last edit: 2016-02-01 23:52:58 |