## Search found 192 matches

Sat Dec 21, 2002 8:47 am
Forum: Volume 1 (100-199)
Topic: 138 - Street Numbers
Replies: 93
Views: 6643

### Help understanding P 138 (street numbers)

I don't understand at all p 138.
Can anyone help me ?

Thanks
Mon Dec 16, 2002 8:24 am
Forum: Volume 102 (10200-10299)
Topic: 10212 - The Last Non-zero Digit.
Replies: 63
Views: 30495

### Problem 10212

What do tou mean by :
--"Do Everything in one loop ?"

How can I know the number that must be divided by two or by five, if I count the factor of two and five in one loop ?

Thanks.
Mon Dec 16, 2002 7:52 am
Forum: Volume 100 (10000-10099)
Topic: 10079 - Pizza Cutting
Replies: 44
Views: 9910

### Problem Pizza Cutting

Oh, yes I have missed some description.
(for n=0, the output should be 1).

Thanks very much, Now I got accepted.
Sat Dec 14, 2002 5:34 am
Forum: Volume 102 (10200-10299)
Topic: 10212 - The Last Non-zero Digit.
Replies: 63
Views: 30495

### 10212 - The Last Non Zero Digit

[size=24][/size] I don't know how to solve this problem without time limit. My algorithm is : last = 1; 1. for (k=n-m+1; k<=n; k++) ----- find the count of factor 2 and factor 5; 2. for (k=n-m+1; k<=n; k++) { ------ while (!(k%5) && count_5>0) { k/=5; count_5--; } ------ while (!(k%2) && count_2>0) ...
Sat Dec 14, 2002 4:57 am
Forum: Volume 6 (600-699)
Topic: 694 - The Collatz Sequence
Replies: 46
Views: 15712

### WA 694 (The Collatz Sequence)

Can anyone help me, I got WA for this problem.

I use an unsigned long int (C++), and to limited 'a', i use this expression :

count = 0;
while (a<=l) { //a = number, l = limit
count++;
if (a==1) break;
else if (a%2) {
if (a>715827882) break;
else a=a*3+1;
}
else a/=2;
}
Sat Dec 14, 2002 4:42 am
Forum: Volume 100 (10000-10099)
Topic: 10079 - Pizza Cutting
Replies: 44
Views: 9910

### Problem : Pizza Cutting

No, I don't got Overflow,
and my result for 210.000.000 is :
22050000105000001. I use type : string (not integer) to stor my value, but still got WA, can you give me some sample input that 'cause WA?
Sat Dec 14, 2002 4:16 am
Forum: Volume 100 (10000-10099)
Topic: 10018 - Reverse and Add
Replies: 169
Views: 16989

### Problem 10018

The judge is error when rejudged problem 10018 and now the judged has fixed it and received my problem.

Thanks.
Thu Dec 12, 2002 8:12 am
Forum: Volume 100 (10000-10099)
Topic: 10079 - Pizza Cutting
Replies: 44
Views: 9910

### 10079

:P Hi, I am trying to solve problem 10079, and got failed. I use this method : for n=an, MAX = bn n=0 , MAX = 0 n=1, MAX = 2 n=2, MAX = 4 (2 + 2 ) n=3, MAX = 7 (4 + 3 ) n=4, MAX = 11 (7 + 4) n=5, MAX=16 (11 + 5) n=6, MAX=22 (b(n-1) + an) n=7, MAX=29 n=8, MAX=37 n=9, MAX=46 n=10, MAX=56 ... and so fo...
Thu Dec 12, 2002 7:58 am
Forum: Volume 101 (10100-10199)
Topic: 10164 - Number Game
Replies: 32
Views: 10463

### 10164 - Number Game

Hi,

I have try to solve this problem with generate all the combination that possible (Recursive),
but i still get WA!

Can anyone tell me the other method ?

regards,
Red Scorpion
Thu Dec 12, 2002 7:12 am
Forum: Volume 100 (10000-10099)
Topic: 10018 - Reverse and Add
Replies: 169
Views: 16989

### 10018

[color=red][/color][size=18][/size]Hi, I have solved this problem(Reverse and Add) a month ago, and it got accepted. Now, I looks in the judge status, and my list of problem(10018) become dissappear, then I send again that problem, and get Wrong Answer? If anyone have time , please help me. This is ...
Thu Dec 12, 2002 6:47 am
Forum: Volume 100 (10000-10099)
Topic: 10042 - Smith Numbers
Replies: 75
Views: 22737
Thans, Now I got Accepted!
Sat Nov 30, 2002 5:32 am
Forum: Volume 100 (10000-10099)
Topic: 10042 - Smith Numbers
Replies: 75
Views: 22737

### 10042 - Smith Numbers

:P I can't figure out why my program still got wring answer ?, If someone have any time, please tell me what's wrong with this code : [[/code][/cpp][size=18][/size] #include <stdio.h> #include <string.h> #include <math.h> #define MAX 100000 #define MAXCHAR 1000 int smith, sum_smith, prime[MAX], np=0...