i downloaded the solved code for problem reverse string from scoreboards of
winner that was
#include <stdio.h>
#include <string.h>
int main()
{
int t,j,k,i,n;
char x[1010];
freopen("in","r",stdin);
freopen("B.out","w",stdout);
scanf("%d",&t);
for(k=0;k<t;++k) {
scanf("\n%[^\n]",x);
n = strlen(x);
printf("Case #%d:",k+1);
while(n>=0) {
for(i=n-1;i>=0;--i)
if(x[i] == ' ') break;
printf(" ");
for(j=i+1;j<n;++j) printf("%c",x[j]);
n = i;
}
printf("\n");
}
}
but, when i m submitting that ,, i get error your output should start with
case #1: , even though it's correct. plz help. the code posted is of the
winners of code jam 2010 . there code is showing this error on my macbook,
safari browser. what's da reason..
On Thu, May 5, 2011 at 11:26 PM, Asmaa Magdi <[email protected]> wrote:
> Hi Ahmed,
>
> That's a nice tool.
>
> Is there a way to reject the challenge made to me by someone else. I was
> challenged, well by you :), in qualification round but I know I won't be
> able to compete from the start of the contest, so it won't be a fair
> challenge to make.
>
> Thanks and Regards,
> On Mon, May 2, 2011 at 12:13 PM, Ahmed Aly <[email protected]> wrote:
>
>> Hi everyone,
>>
>> I would like to announce about my new Google Code Jam tools website, you
>> can find it here <http://ahmed-aly.selfip.com/CodeJamTools/>.
>>
>> This is a list of some features in this website:
>> 1- You can see the results for any country in any GCJ round.
>> 2- You can see the results for anyone in all GCJ rounds.
>> 3- You can compare the results for any 2 contestants in all GCJ round.
>> 4- You can challenge anyone to beat him in the next GCJ rounds.
>> 5- You can see a list of all challenges for everyone.
>> 6- You can see a list of all registered users with some GCJ stats and some
>> challenges stats.
>> 7- You can share anything on Facebook.
>>
>> You can see the challenges rules in the homepage.
>>
>> *If you are going to register, please make sure to read the notes in the
>> registration page carefully.*
>>
>> Hope you will like it.
>>
>> --
>> Best Regards,
>> Ahmed Aly
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "google-codejam" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/google-code?hl=en.
>>
>
>
>
> --
> *Asmaa Magdi*
>
> --
> You received this message because you are subscribed to the Google Groups
> "google-codejam" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-code?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"google-codejam" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-code?hl=en.