Ahnaf.Shahriar.Asif's blog

By Ahnaf.Shahriar.Asif, history, 7 years ago, In English

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 ..................

»
7 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by Ahnaf.Shahriar.Asif (previous revision, new revision, compare).

»
7 years ago, # |
Rev. 7   Vote: I like it +1 Vote: I do not like it

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.