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
hide comments
hodobox:
2016-07-05 07:49:44
To be honest, not a nice problem with a very unclear description.
|
|
KD :
2016-06-02 13:01:28
scan till EOF otherwise you will get TLE .........AC after two TLE's -_- |
|
hmp:
2016-05-21 06:31:34
please explain sample test cases |
|
rohitsuri1410:
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.
|
|
lalit_nit:
2016-02-09 11:44:00
Itrate till Eof @harsh .... In java while (in.hasNext ())..... :) |
|
harshgupta007:
2016-02-07 07:52:02
What does this mean: "Second line contains a string" why second
|
|
farhan764:
2016-02-03 17:12:53
think..............there is already given correspondence value of n ....so according to n think.... |
|
better_clever:
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 |
|
farhan764:
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:
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 |
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 |