576 - Haiku Review

All about problems in Volume 5. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

uDebug
A great helper
Posts: 475
Joined: Tue Jul 24, 2012 4:23 pm

Re: 576

Post by uDebug »

Here's some input / output I found useful during testing / debugging.

Input:

Code: Select all

 haikurtogoodo/sevensyllablesforsur/andthenfiveaaa uuioyoioioi
    these          are i         /    thursday has two vowels yay / you know for sur
these          aoiore u         /    thursday has two vowls yay / you know for sur
 theeese          aoior u         /    thursday has two vowls yay / you know for sur
e/o/i
AC Output:

Code: Select all

Y
3
2
1
Check input and AC output for over 7,500 problems on uDebug!

Find us on Facebook. Follow us on Twitter.
uDebug
A great helper
Posts: 475
Joined: Tue Jul 24, 2012 4:23 pm

Re: 576 WA PLEASE HELP

Post by uDebug »

fayyazkl wrote:HI EVERYBODY!

I HAVE TRIED MY LEVEL BEST AND MY PROGRAM GIVES THE CORRECT ANSWER FOR EVERY INPUT I CAN THINK OF. BUT I AM GETTING WA. PLEASE TELL ME WHAT'S WRONG WITH THE CODE OR SUPPLY SOME INPUT ON WHICH MY PROGRAM FAILS!!
It would be great if you didn't shout.

That being said, try replacing the line

Code: Select all

main ()
with

Code: Select all

int main ()
Check input and AC output for over 7,500 problems on uDebug!

Find us on Facebook. Follow us on Twitter.
uDebug
A great helper
Posts: 475
Joined: Tue Jul 24, 2012 4:23 pm

Re: 576 Haiku Review... WA.

Post by uDebug »

bidol wrote:i don't know why i got WA.
plz anybody help me... or give me sample input data... :D

here my code.
The code you shared doesn't even compile.
Check input and AC output for over 7,500 problems on uDebug!

Find us on Facebook. Follow us on Twitter.
uDebug
A great helper
Posts: 475
Joined: Tue Jul 24, 2012 4:23 pm

Re:

Post by uDebug »

john_locke wrote:hi friends i tried all the sample input from the forum but still get WA
Try running your code on the sample input given in the problem statement.
Check input and AC output for over 7,500 problems on uDebug!

Find us on Facebook. Follow us on Twitter.
uDebug
A great helper
Posts: 475
Joined: Tue Jul 24, 2012 4:23 pm

Re: WA againnnn

Post by uDebug »

empo wrote:Please tell me why am i getting wrong answer again and again....
Try running your code on the test case I provided.
Check input and AC output for over 7,500 problems on uDebug!

Find us on Facebook. Follow us on Twitter.
uDebug
A great helper
Posts: 475
Joined: Tue Jul 24, 2012 4:23 pm

Re: 576

Post by uDebug »

abid_iut wrote:getting WA
pls help
Try running your code on the test case I provided.
Check input and AC output for over 7,500 problems on uDebug!

Find us on Facebook. Follow us on Twitter.
Post Reply

Return to “Volume 5 (500-599)”