Search found 21 matches

by raymond85
Wed Jul 02, 2003 11:25 am
Forum: Volume 103 (10300-10399)
Topic: 10324 - Zeros and Ones
Replies: 179
Views: 43877

Re: hmn

Isn't that too much slow? :o Of coz, if you are storing a long string that uses a lot memory, I think it might slow down the processing speed. By the way I think it's acceptable, I used it instead of array of character many times when doing ACM problems and got AC without much different on the proc...
by raymond85
Wed Jul 02, 2003 10:36 am
Forum: Volume 5 (500-599)
Topic: 583 - Prime Factors
Replies: 171
Views: 37169

finally i got AC...... i add a break in a loop so that it will stop looping once it finds a prime factor.....

btw the time is quite unsatisfactory.....wonder if there's anyway to improve the speed......
by raymond85
Wed Jul 02, 2003 10:07 am
Forum: Volume 5 (500-599)
Topic: 583 - Prime Factors
Replies: 171
Views: 37169

Excuse me..... I got TLE in this problem too..... I tested my program with about 400 random 9-digits numbers. I tested my program with 2147483640 to 2147483647. I tested my program with some large primes. I also tested my program with some small numbers. My program is giving out an output immediatel...
by raymond85
Tue Jul 01, 2003 9:15 pm
Forum: Volume 103 (10300-10399)
Topic: 10324 - Zeros and Ones
Replies: 179
Views: 43877

simply use ansistring instead of string...
it gives u a string with dynamic size

var
s : ansistring;
by raymond85
Tue Jul 01, 2003 9:13 pm
Forum: Volume 101 (10100-10199)
Topic: 10196 - Check The Check
Replies: 77
Views: 23912

try remove uses crt; and clrscr;
it seems that it's not necessary as the question is not asking you to output to screen

i dunno if they allow u to use crt...
by raymond85
Tue Jul 01, 2003 9:32 am
Forum: Volume 4 (400-499)
Topic: 497 - Strategic Defense Initiative
Replies: 144
Views: 21394

497 - Why P.E.?

I got an AC for this question. However, it shows Accepted(P.E.). I dont know why I got presentation error here. I really want to know since I got P.E. too in another similar question 231. here's my code for 497, plz help! Thx! program q231; var a,b,c : array[0..100000] of longint; i,j,k,m,n,p,y,z : ...

Go to advanced search