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.
- 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)) .
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.”
16 26 20 22 23
27 18 21 21
16 19 20 20
16 17 18 19 25
Problem Setter:-Farhan khan
Sherlock was known for his logic, not the guesswork needed for this nonsense. No need to read til EOF, stop after reading a word of three characters or fewer.Last edit: 2018-01-07 23:04:03
what the hell ,remeber "." after "no one" it gives me 1WA
thanks @shubham_cs_iet. your comment helped me.Last edit: 2017-03-03 20:55:30
AC in one go!!
Got 6 time runtime error (SIGXFSZ),,,,
Scan till EOF otherwise u will get tle;
That period(.) after "no one" costed me 2 WA....
while(!feof(stdin)) would help in scanning till EOF.
0.6 points for this problem...
To be honest, not a nice problem with a very unclear description.