Search found 74 matches

by sunnycare
Mon Apr 18, 2005 4:54 am
Forum: Volume 100 (10000-10099)
Topic: 10061 - How many zero's and how many digits ?
Replies: 43
Views: 22680

10061 need some samples

in this problem: i use the formula: n!=sqrt(2*pi*n)*[(n/e)^n]; to caculate the length of the n! (if in base k,then divide log(k)) i use a normal algorithm to caculate the trailing zero here is my code: #include <iostream> #include <cmath> using namespace std; #define N 800 #define ISPRIME(n) (!(prim...
by sunnycare
Mon Apr 18, 2005 4:26 am
Forum: Volume 1 (100-199)
Topic: 130 - Roman Roulette
Replies: 25
Views: 2999

problem 130 WA need some sample

i got WA when i submit prob130 but i got AC when i submit prob 133 151 and 440 they are the same kind of problem ....why? here is my code .... who can test my code , and give me some sample ..of course i will test it ,too. thanks... //130 Roman roulette #include <iostream> using namespace std; //her...
by sunnycare
Mon Apr 18, 2005 4:15 am
Forum: Volume 6 (600-699)
Topic: 623 - 500!
Replies: 187
Views: 49379

who can help me?
by sunnycare
Fri Apr 15, 2005 5:37 am
Forum: Algorithms
Topic: want to learn about "Hash"
Replies: 6
Views: 1536

hi misof

you are really a great helper..
by sunnycare
Fri Apr 15, 2005 2:36 am
Forum: Volume 1 (100-199)
Topic: 109 - SCUD Busters
Replies: 96
Views: 27308

thanks .....
it's great helpful to me

:lol:
by sunnycare
Fri Apr 15, 2005 2:31 am
Forum: Algorithms
Topic: want to learn about "Hash"
Replies: 6
Views: 1536

sorry what's rabin karry string match? :(
by sunnycare
Fri Apr 15, 2005 2:31 am
Forum: Algorithms
Topic: want to learn about "Hash"
Replies: 6
Views: 1536

sorry what's rabin karry string match? :(
by sunnycare
Fri Apr 15, 2005 2:21 am
Forum: Volume 6 (600-699)
Topic: 623 - 500!
Replies: 187
Views: 49379

623 Compiled error!

first ,code here:it's compiled error #include <cstdio> using namespace std; #define BASE 1000000000 #define MAXNUM 999999999 struct bignum { long val[300]; long len; }; bignum tab[1001]; void mul(bignum &a,long b,bignum &r) { long long tmp; long i; long carry=0; for(i=0;i<a.len;i++) { tmp=lo...
by sunnycare
Fri Apr 15, 2005 1:52 am
Forum: Volume 1 (100-199)
Topic: 120 - Stacks of Flapjacks
Replies: 118
Views: 16325

you're right.......
:lol:
by sunnycare
Thu Apr 14, 2005 10:42 am
Forum: Volume 1 (100-199)
Topic: 120 - Stacks of Flapjacks
Replies: 118
Views: 16325

hi Sedefcho

is your output right??
i have just solved this problem
But my output is not the same as yours,when the input is ....99 7 99 0 7 99 0


its strange ......
by sunnycare
Wed Apr 13, 2005 5:15 am
Forum: Volume 1 (100-199)
Topic: 116 - Unidirectional TSP
Replies: 226
Views: 42528

hi ....i have solved this problem..... my algorithm is: 1 use dp to calculate the minimal path , from left to right 2 find all area that in a minimal path , from right to left (O(n*n) ) 3 the the area with the smalllest row in column 1 (found in step 2) is the start area; 4 then from left to the rig...
by sunnycare
Wed Apr 13, 2005 4:50 am
Forum: Volume 1 (100-199)
Topic: 109 - SCUD Busters
Replies: 96
Views: 27308

i cant understand problem 109,for my poor endlish

who can explain it to me? (is there any chinese)
thanks..
i cant understand problem 138 either....
by sunnycare
Tue Apr 12, 2005 2:20 am
Forum: Volume 4 (400-499)
Topic: 483 - Word Scramble
Replies: 122
Views: 23998

483 WA i have searched all samples,and all are right....

I have searched all sample inputs on board, and all are right... Why judge still give me a WA instead of a AC :( here is my code: #include <iostream> #include <string> using namespace std; string word; char ch; void reverseOut(string &s) { long i=s.length()-1; while(i>=0) { cout<<s[i]; i--; } } ...
by sunnycare
Mon Apr 11, 2005 5:57 am
Forum: Algorithms
Topic: want to learn about "Hash"
Replies: 6
Views: 1536

want to learn about "Hash"

i know little about "Hash"..

who can give me some problem (maybe thay are not in the problemset)about "Hash".....

i also need the source code to read...

thanks ..

(i am poor in English ,if there are anything confusing you above,please tell me)
by sunnycare
Tue Apr 05, 2005 3:30 am
Forum: Volume 7 (700-799)
Topic: 755 - 487--3279
Replies: 115
Views: 32212

can you mail your prog to me??

my mail:athena_kula@msn.com

Go to advanced search