Search found 78 matches

by Articuno
Sat Dec 20, 2008 2:34 pm
Forum: Volume 114 (11400-11499)
Topic: 11483 - Code Creator
Replies: 16
Views: 6338

Re: 11483 WA

@Obaida,
I don't uderstand why it was WA. Shouldn't it be RTE?
by Articuno
Sat Dec 20, 2008 12:58 pm
Forum: Volume 114 (11400-11499)
Topic: 11483 - Code Creator
Replies: 16
Views: 6338

Re: 11483 WA

@ Obaida, I got AC using your code. Just increase your array size and check for '\' character. That will do.
Wish you good luck :)
by Articuno
Fri Dec 19, 2008 4:16 pm
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 30517

Re: 488wa!!!!!!!please help me!!!!!!!!where is the problem

Change this portion of your code:

Code: Select all

      printf("\n");
      scanf("%lld\n%lld",&m,&p);
      printf("\n");
into this:

Code: Select all

      scanf("%lld\n%lld",&m,&p);
      if(i!=0) printf("\n");
That will do. :)
by Articuno
Fri Dec 19, 2008 3:42 pm
Forum: Volume 3 (300-399)
Topic: 371 - Ackermann Functions
Replies: 196
Views: 28434

Re: 371 - Anckerman Functions - Why WA ?

@pok,
Your code will not work for input like this:

Code: Select all

10 1
You did not consider this.
The output should be:

Code: Select all

Between 1 and 10, 9 generates the longest sequence of 19 values.
Wish you good luck.
by Articuno
Fri Dec 19, 2008 8:23 am
Forum: Volume 5 (500-599)
Topic: 591 - Box of Bricks
Replies: 80
Views: 11134

Re: 591

Your code is OK. But you forgot to print a '.' in the output.
by Articuno
Thu Dec 18, 2008 6:26 pm
Forum: Volume 115 (11500-11599)
Topic: 11526 - H(n)
Replies: 49
Views: 16690

Re: 11526 - H(n)

Thanks to helloneo. Your hint was very useful for me.
Thanks a lot again. :D
by Articuno
Thu Dec 18, 2008 5:56 pm
Forum: Volume 114 (11400-11499)
Topic: 11483 - Code Creator
Replies: 16
Views: 6338

Re: 11483 WA

@ obaida,
You forgot to check for '\' character.
As example, for this case:

Code: Select all

1
\Y
0
The output should be:

Code: Select all

Case 1:
#include<string.h>
#include<stdio.h>
int main()
{
printf("\\Y\n");
printf("\n");
return 0;
}
Hope it will help :)
by Articuno
Thu Dec 18, 2008 1:21 am
Forum: Volume 4 (400-499)
Topic: 492 - Pig-Latin
Replies: 213
Views: 25420

Re: 492 WA help plz

@sazzadcsedu
Don't forget to remove your code.
Good luck
by Articuno
Wed Dec 17, 2008 10:46 pm
Forum: Volume 4 (400-499)
Topic: 492 - Pig-Latin
Replies: 213
Views: 25420

Re: 492 WA help plz

@ sazzadcsedu,
Just change this portion of your code:

Code: Select all

removed
into this:

Code: Select all

removed
You will get AC. :)
by Articuno
Wed Dec 17, 2008 9:21 pm
Forum: Volume 4 (400-499)
Topic: 492 - Pig-Latin
Replies: 213
Views: 25420

Re: 492 WA help plz

Make your array size 1000000.
Declare it as global.
And you should use long instead of int. Rest of the code is ok I think.
Good luck
by Articuno
Wed Dec 17, 2008 7:05 pm
Forum: Volume 100 (10000-10099)
Topic: 10013 - Super long sums
Replies: 212
Views: 39705

Re: 10013 - Super Long Sums

Your code is not AC because of this:

Code: Select all

printf("\n\n");
The problem description says:
There is a blank line between output blocks.
Good luck
by Articuno
Mon Dec 15, 2008 7:10 pm
Forum: Volume 4 (400-499)
Topic: 445 - Marvelous Mazes
Replies: 93
Views: 10348

Re: 445 WA

What are you trying to do with this? : if(str[0]=='\n') printf("\n"); You are using gets() and I think it is not possible for a string to have a '\n' character while you are using gets(). And for this case: 101a Your code fails.The output should be aa I think this problem requires to read input char...
by Articuno
Mon Dec 15, 2008 7:32 am
Forum: Volume 4 (400-499)
Topic: 494 - Kindergarten Counting Game
Replies: 119
Views: 21838

Re: 494 WA

Well, my AC code gives 1 for your input. As example,In this input: He is a boy. I am a student. You are considering 'a' and 'I' as a word. So what's wrong with this? input: a I output: 1 1 Why the output should be 0? I dont understand. I think the judge data has no such input that's why both of our ...
by Articuno
Sun Dec 14, 2008 12:38 am
Forum: Volume 4 (400-499)
Topic: 494 - Kindergarten Counting Game
Replies: 119
Views: 21838

Re: 494 WA

Try these cases:

Code: Select all

i
    i am
The output should be:

Code: Select all

1
2
You also forgot about "return 0;" at the end of your main().
Wish you good luck :)
by Articuno
Sat Dec 13, 2008 7:50 am
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 31239

Re: 401- Palindromes WA. I'm going crazy

You did not consider the case when a character of input string is not found in your array b. You do not use any flag to determine that. That's why your program is giving wrong answer for these cases: Ebb3 BBABB the output should be: Ebb3 -- is not a palindrome. BBABB -- is a regular palindrome. And ...

Go to advanced search