Search found 185 matches

by htl
Tue Nov 23, 2004 3:22 pm
Forum: Volume 107 (10700-10799)
Topic: 10763 - Foreign Exchange
Replies: 45
Views: 18079

I just read the data, separating them into 2 groups, one for i<j and i>j for the other. And I sort them and compare them. I got AC for such a long time. Could you share your method?
by htl
Wed Sep 01, 2004 3:59 am
Forum: Volume 107 (10700-10799)
Topic: 10708 - Cheetah
Replies: 14
Views: 5765

10708 - Cheetah

Could someone got ac give some test case? btw, if the cheetah and the prey is in the same position, then C=P?
by htl
Tue Aug 31, 2004 4:14 pm
Forum: Volume 107 (10700-10799)
Topic: 10705 - The Fun Number System
Replies: 14
Views: 4198

You mean the posibits won't be modified whether we use ordinary or the 'Fun' system? Hmmm.... Let me take some time to figure out :roll:
by htl
Tue Aug 31, 2004 6:02 am
Forum: Volume 107 (10700-10799)
Topic: 10705 - The Fun Number System
Replies: 14
Views: 4198

10705 - The Fun Number System

Is there a good algo to solve it? I think brute force would take much time.
by htl
Tue Aug 31, 2004 5:44 am
Forum: Volume 106 (10600-10699)
Topic: 10646 - What is the Card?
Replies: 17
Views: 6688

I didn't read your code completely. But I can tell you that the position of the card is constant. You can figure out by simple math.
by htl
Mon Aug 30, 2004 5:56 pm
Forum: Volume 107 (10700-10799)
Topic: 10706 - Number Sequence
Replies: 34
Views: 14532

Find out a silly bug and go ac... Thank you for your reply :D
by htl
Mon Aug 30, 2004 5:27 pm
Forum: Volume 107 (10700-10799)
Topic: 10706 - Number Sequence
Replies: 34
Views: 14532

My output of 2147483647 is right.

How about these?

in:
14
23423
65753
2345
45645756
546454
6786797
131231
78934124
68904565
123487907
5655
778888
101011
546

out:
3
1
5
0
2
5
9
9
2
1
1
5
5
2
by htl
Mon Aug 30, 2004 5:19 pm
Forum: Volume 107 (10700-10799)
Topic: 10706 - Number Sequence
Replies: 34
Views: 14532

10706 - Number Sequence

It seems to be easy problem. I got so many wa... Could someone give some test cases?
by htl
Sun Aug 15, 2004 7:15 am
Forum: Volume 106 (10600-10699)
Topic: 10683 - The decadary watch
Replies: 35
Views: 13236

Maniac wrote:why bother using doubles? Since rounding is truncating in this case, just use integers and use integer division:
[cpp]
int millisecs = ...;
int newmillisecs = (millisecs*125)/108;
[/cpp]
Simple as that....
why integer division doesn't cause error but does double using?
by htl
Mon Aug 09, 2004 5:54 pm
Forum: Volume 106 (10600-10699)
Topic: 10683 - The decadary watch
Replies: 35
Views: 13236

I use t=floor(temp*125/108*100), where t is long and temp is double. temp is the total seconds of given time in traditional format. But it didn't work. How do I improve it?
by htl
Mon Aug 09, 2004 11:35 am
Forum: Volume 106 (10600-10699)
Topic: 10683 - The decadary watch
Replies: 35
Views: 13236

10683 - The decadary watch

Easy problem but got wa. I think the problem is the precision. How do I get the digits of the result precisely? Or are there some critical input?
by htl
Fri Jul 30, 2004 3:21 am
Forum: Volume 5 (500-599)
Topic: 595 - A Major Problem
Replies: 5
Views: 2125

595 - fix PE

I tried many times and always got PE. Could someone give me some examples of output(where should I output the newline)?
by htl
Sat Jul 10, 2004 6:30 pm
Forum: Volume 4 (400-499)
Topic: 468 - Key to Success
Replies: 33
Views: 4418

I set the buffer to 3000 characters and get WA. I get PE after setting the buffer to 6000 characters. Than's strange. Now I don't know how to fix the PE.
by htl
Sat Jul 10, 2004 10:40 am
Forum: Volume 4 (400-499)
Topic: 468 - Key to Success
Replies: 33
Views: 4418

468 - Key to Success

Could someone give some critical case of input?
by htl
Thu Jul 08, 2004 4:27 pm
Forum: Volume 4 (400-499)
Topic: 453 - Intersecting Circles
Replies: 84
Views: 15805

Such a strange thing... I use 1E-5 as Epsilon and my program may output -0.000 and get PE. I get AC later by using 1E-4 as Epsilon and
-0.000 dissapeared!

Go to advanced search