one test case not passed : https://ide.codingblocks.com/#/s/15162
ques link: https://hack.codingblocks.com/contests/c/452/96
Smart keypad- 1
Try your code for input as
301
Problem in your code exits, where you are handling the case of digit as 0
what is expected output??
It goes like this
d .
d +
d @
d $
e .
e +
e @
e $
f .
f +
f @
f $
https://ide.codingblocks.com/#/s/15282
i am getting expected output now, but the test case did not pass
Your code is not giving expected output because there is no space in between the key values corresponding to 3 and 1.
e.g., ‘d $’ is one of the output string but your code gives ‘d$’
You can refer this code for it
https://ide.codingblocks.com/#/s/15289
2 Likes
in dev++ ide it works fine but in coding blocks ide is doesn’t work
for input 102
plz help