Search found 30 matches

by frankhuhu
Tue Mar 07, 2006 12:23 pm
Forum: Volume 110 (11000-11099)
Topic: 11008 - Antimatter Ray Clearcutting
Replies: 81
Views: 82476

How to use DP? I got TLE in this problem.Please give me any hints,THX!!
by frankhuhu
Mon Feb 13, 2006 9:45 am
Forum: Volume 109 (10900-10999)
Topic: 10993 - Ignoring Digits
Replies: 19
Views: 11258

hmm...
Can you explain it in details,I don't quite understand how to use BFS. :oops:
by frankhuhu
Mon Feb 13, 2006 9:39 am
Forum: Volume 109 (10900-10999)
Topic: 10993 - Ignoring Digits
Replies: 19
Views: 11258

Sorry Krzysztof Duleba,I post the wrong problem id and I need help on p10993 Ignoring Digits. :P
by frankhuhu
Mon Feb 13, 2006 8:14 am
Forum: Volume 109 (10900-10999)
Topic: 10993 - Ignoring Digits
Replies: 19
Views: 11258

10993 - Ignoring Digits

Can anyone tell me how to solve this problem? I haven't any idea :(
by frankhuhu
Sun Feb 12, 2006 11:34 am
Forum: Volume 109 (10900-10999)
Topic: 10990 - Another New Function
Replies: 32
Views: 18068

I have made a silly mistake and get AC now!! :P
Andway thanks a lot !! :wink:
by frankhuhu
Sun Feb 12, 2006 10:27 am
Forum: Volume 109 (10900-10999)
Topic: 10990 - Another New Function
Replies: 32
Views: 18068

Sorry,But could you tell me how to modify the sieve of Erastosthenes?
I try to modify it in order to get the factorization of n but get MLE.
So could you show me the picture? Thx!!
by frankhuhu
Fri Feb 10, 2006 4:25 pm
Forum: Volume 109 (10900-10999)
Topic: 10946 - You want what filled?
Replies: 38
Views: 22811

The array of hode h[251] is not big enough;
Change it to h[2500] will get AC though it waste some memory!
by frankhuhu
Sun Aug 14, 2005 8:05 am
Forum: Volume 103 (10300-10399)
Topic: 10344 - 23 out of 5
Replies: 81
Views: 36732

Hi,helloneo!
You said there are negative inputs? But the problem says "The Input consists of 5-Tupels of positive Integers, each between 1 and 50."
If there are negative inputs,where should I modifiy my code?
I can not make it out,plz help me!!!
by frankhuhu
Sat Aug 13, 2005 11:16 am
Forum: Volume 103 (10300-10399)
Topic: 10344 - 23 out of 5
Replies: 81
Views: 36732

Oh.My God!!
My friends told me that this problem might have been changed.His code used to get AC,but now get WA.Perhaps the test data have been changed and there maybe some mistakes in it.
by frankhuhu
Fri Aug 12, 2005 4:07 pm
Forum: Volume 103 (10300-10399)
Topic: 10344 - 23 out of 5
Replies: 81
Views: 36732

10344 23 Out of 5

Hi! I need help for p10344. I get WA,and I don't why.I think there should be 5!*3^4=9720 conditions.So Backtracking it. Here is the code: #include <iostream.h> #include <string.h> int oper[4]; int value[5]; bool flag; int cal() { int result; switch(oper[0]){ case 1:result=value[0]+value[1];break; ca...
by frankhuhu
Sat Feb 26, 2005 8:01 am
Forum: C++
Topic: How to use qsort function in C++? Please help!
Replies: 2
Views: 2309

I see!Thanks misof :lol:
by frankhuhu
Fri Feb 25, 2005 8:59 am
Forum: C++
Topic: How to use qsort function in C++? Please help!
Replies: 2
Views: 2309

How to use qsort function in C++? Please help!

I want to use qsort function.But it says compile error on my VC++6.0 Here is my sample code: #include <stdio.h> #include <stdlib.h> #include <string.h> int sort_function( const void *a, const void *b); char list[5][4] = { "cat", "car", "cab", "cap", "can&...
by frankhuhu
Tue Feb 15, 2005 3:16 pm
Forum: Volume 101 (10100-10199)
Topic: 10104 - Euclid Problem
Replies: 29
Views: 14314

No one help me?? :cry:
by frankhuhu
Sun Feb 13, 2005 3:23 pm
Forum: Volume 101 (10100-10199)
Topic: 10104 - Euclid Problem
Replies: 29
Views: 14314

10104 Need Help

This problem is not a hard one ,I think.But it confuse me a lot.I use a loop for(y=-b;y<=b;y++) to find the suitable x and y.But TLE.So I wonder is there a formula that can find the x,y quickly.Please help me !!!Thx
by frankhuhu
Fri Feb 11, 2005 5:44 am
Forum: Volume 4 (400-499)
Topic: 409 - Excuses, Excuses!
Replies: 63
Views: 15351

Yeah,Got it! Thanks misof!AC now! :P

Go to advanced search