Search found 93 matches

by Almost Human
Fri Oct 31, 2003 6:32 am
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 19432

I wonder why "7 199" should be the output for input "100 1"

Can anybody explain it to me, please ?
by Almost Human
Thu Oct 30, 2003 3:25 pm
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 19432

107 : "Cat in The Hat" WA ... ???

I got WA on this problem ...

Does anybody can help me ??? :cry: :cry: :cry:

What should be the output for such input :
0 1
0 10
0 100
1 1
100 1
1000 1
10000 1

any special input I should consider ??
by Almost Human
Wed Oct 29, 2003 3:43 pm
Forum: Volume 1 (100-199)
Topic: 106 - Fermat vs. Pythagoras
Replies: 138
Views: 11502

thank you for your advice.

I finally got an AC after realizing the difference between my last output ( for input 1000000 ) and yours.

many thanks
by Almost Human
Wed Oct 29, 2003 10:42 am
Forum: Volume 1 (100-199)
Topic: 106 - Fermat vs. Pythagoras
Replies: 138
Views: 11502

can anybody tell me what is the output for input like this :
1
10
100
1000
10000

thanks
by Almost Human
Wed Oct 29, 2003 3:48 am
Forum: Volume 1 (100-199)
Topic: 106 - Fermat vs. Pythagoras
Replies: 138
Views: 11502

106 - WA .. help

Any sample input and output ???

thanks in advance
by Almost Human
Tue Sep 02, 2003 5:30 am
Forum: Volume 1 (100-199)
Topic: 104 - Arbitrage
Replies: 223
Views: 13207

if there are more than one solution, pick the solution that takes the shortest sequence
by Almost Human
Fri Aug 01, 2003 8:21 am
Forum: Volume 100 (10000-10099)
Topic: 10025 - The ? 1 ? 2 ? ... ? n = k problem
Replies: 42
Views: 11594

10025 - WA

I got WA. Why ??? Any special input I should consider ??? #include <math.h> #include <stdio.h> int main ( void ) { long NumOfCase , input , first , count ; /* freopen ( "10025.in" , "r" , stdin ) ; freopen ( "10025.out" , "w" , stdout ) ;*/ scanf ( "%ld" , &NumOfCase ) ; while ( NumOfCase -- ) { sca...
by Almost Human
Tue Jul 22, 2003 5:29 pm
Forum: Volume 105 (10500-10599)
Topic: 10519 - !! Really Strange !!
Replies: 35
Views: 13481

Allright ....

I've changed my code and used my bignum class and got ACC..

thanks ...
by Almost Human
Tue Jul 22, 2003 4:29 pm
Forum: Volume 105 (10500-10599)
Topic: 10519 - !! Really Strange !!
Replies: 35
Views: 13481

I've generated the same formula ... May be I can explain a little to you. Hope it's useful. But by the way ... I got WA for this .... Is this problem big number or what ? Firstly, I didn't add 1 to the result... so I got the sequence : 1 , 3 , 7 , 13 , 21 ... we get the extrapolation : 2 2 2 2 4 6 8...
by Almost Human
Tue Jul 22, 2003 10:19 am
Forum: Volume 3 (300-399)
Topic: 314 - Robot
Replies: 30
Views: 6329

314 - Why WA .... ?

Is there any special case I should consider? thanks #include <stdio.h> #include <malloc.h> #include <string.h> struct TQueue { int x , y , direction , time ; struct TQueue* next ; } *head = 0 , *tail ; void enqueue ( int , int , int , int ) ; void dequeue ( int* , int* , int* , int* ) ; void dequeue...
by Almost Human
Fri Jun 20, 2003 11:20 am
Forum: Volume 4 (400-499)
Topic: 454 - Anagrams
Replies: 97
Views: 20842

454 - WA

I couldn't figure out why I got WA .... Please give me some special input and output .... #include <ctype.h> #include <stdio.h> int main ( void ) { char input[60000] , ToBePrinted ; unsigned i ; int counter , j ; /* freopen ( "445.in" , "r" , stdin ) ; freopen ( "445.out" , "w" , stdout ) ;*/ while ...
by Almost Human
Tue Jun 17, 2003 10:20 am
Forum: Volume 104 (10400-10499)
Topic: 10499 - The Land of Justice
Replies: 51
Views: 19180

what kind of input is it ... ???

please help ...

thx a lot ....

is my formula correct, actualy ... ?
by Almost Human
Tue Jun 17, 2003 9:55 am
Forum: Volume 104 (10400-10499)
Topic: 10499 - The Land of Justice
Replies: 51
Views: 19180

10499 - The Land of Justice

Is my formula correct.... ?

output = n / 4 ;

where n is number of piece ...

please help ... !
by Almost Human
Wed Jun 11, 2003 3:21 am
Forum: Volume 102 (10200-10299)
Topic: 10279 - Mine Sweeper
Replies: 102
Views: 27881

What a stupid mistake ...

I thought the maximum grid is 8 * 8 ... I didn't read it correctly...

thank you very much the LA-Z-BOy. I finally got AC ...
by Almost Human
Tue Jun 10, 2003 9:26 am
Forum: Volume 102 (10200-10299)
Topic: 10279 - Mine Sweeper
Replies: 102
Views: 27881

I'd changed my code, but it still got Wrong Answer ... but thanks for your help... any suggestion ... ? #include <stdio.h> char input[10][10] , click[10][10] , output[10][10] ; int NumOfCase , grid ; void process ( void ) ; int main ( void ) { int i ; /* freopen ( "10279.in" , "r" , stdin ) ; freope...

Go to advanced search