Hello everybody , I have tried a lot to solve the light oj 1087 — Diablo problem .
problem link : http://www.lightoj.com/volume_showproblem.php?problem=1087
My test sample output is not matching , I have tried a lot , I am a noob , please help me to debug my code . Why does it occur ??
my code : https://paste.ubuntu.com/26080511/
Please help me , Downvote ?? It's okay . But please help me ..................
Auto comment: topic has been updated by Ahnaf.Shahriar.Asif (previous revision, new revision, compare).
Post the problem statement on here.
At present, I can't see the problem statement, but make it
scanf(" %c", &type); Not putting a space there usually causes problems. Put a space before reading a character. Otherwise it reads the space.
Did you mean scanf?
Yes, Thanks for pointing it out.