Search found 122 matches

by Wei-Ming Chen
Thu Jan 24, 2008 2:49 pm
Forum: Volume 113 (11300-11399)
Topic: 11361 - Investigating Div-Sum Property
Replies: 16
Views: 6887

oh~ how a WONDERFUL site it is.

I found out the bug and got accepted now.

Thanks very much!!! :D
by Wei-Ming Chen
Wed Jan 23, 2008 9:34 pm
Forum: Volume 113 (11300-11399)
Topic: 11361 - Investigating Div-Sum Property
Replies: 16
Views: 6887

Hello, I tried to use DP (10*10*K*K) to solve these problem

but got WA

Can someone check the I/O below? thanks.

Input:

Code: Select all

6
234 4567 8
3421 4568976 3
1232 456965 7
9909 123444 5
11111 11111111 7
980364 2147483647 11
CORRECT output:

Code: Select all

69
1521852
9306
4542
226548
17737396
by Wei-Ming Chen
Sun Sep 09, 2007 7:40 am
Forum: Volume 112 (11200-11299)
Topic: 11259 - Coin Changing Again
Replies: 12
Views: 4418

Did you use long long int?

It's necessary for solving it.
by Wei-Ming Chen
Sat Sep 08, 2007 6:25 pm
Forum: Volume 112 (11200-11299)
Topic: 11269 - Setting Problems
Replies: 26
Views: 10876

ok.. Let's try again :)

Code: Select all

20
5 4 7 3 6 9 8 5 1 2 3 4 7 5 3 9 8 2 1 4
6 8 7 5 3 1 4 9 6 5 8 7 2 3 6 4 2 8 9 1
20
6 5 7 1 4 8 6 3 2 5 8 4 1 3 6 8 7 4 2 6
5 4 6 2 5 9 7 4 5 3 4 8 6 6 7 3 2 6 9 4

Code: Select all

105
106
by Wei-Ming Chen
Sat Sep 08, 2007 11:53 am
Forum: Volume 4 (400-499)
Topic: 431 - Trial of the Millennium
Replies: 13
Views: 6516

mf wrote:

Code: Select all

1

10
10 1 A
20 4 B
10 7 C
This is my code give for that input.

Code: Select all

Score  Time  Description
-----  ----  -----------
 10      1   A
 20      4   B

Total score: 30 points
 Total time: 5 hours
Is it right?
by Wei-Ming Chen
Sat Sep 08, 2007 9:22 am
Forum: Volume 112 (11200-11299)
Topic: 11269 - Setting Problems
Replies: 26
Views: 10876

Code: Select all

10
5 7 63 1 48 2 9 5 7 10
5 2 7 4 1 3 6 4 8 2
20
5 3 9 7 1 6 8 4 2 3 6 5 4 7 1 2 3 6 8 7
6 4 2 9 8 7 3 1 4 7 2 5 6 5 7 1 3 5 7 4

Code: Select all

158
98
Hope it helps
by Wei-Ming Chen
Fri Sep 07, 2007 6:19 pm
Forum: Bugs and suggestions
Topic: Problem with New Server
Replies: 2
Views: 2298

It's down now..

Try again after few hours, I think it will be OK :)
by Wei-Ming Chen
Fri Sep 07, 2007 6:11 pm
Forum: Volume 112 (11200-11299)
Topic: 11266 - Equations
Replies: 15
Views: 5166

try this case

Code: Select all

1
6 5874 
-521 5789 
-7895 25 
-123 456 
987 10000 
-1000 0
-10000 10000
answer is 50938
by Wei-Ming Chen
Fri Sep 07, 2007 9:50 am
Forum: Bugs and suggestions
Topic: New Time Limit is 1 second?
Replies: 8
Views: 3208

The test data used on the contest is different from which used on the old system, and usually, the test data used on the contest is smaller. I think that new system using the datas which is used on the contest, because on 11266, my code run 1.908(s) on old system but 0.330(s) on new system. 11267, m...
by Wei-Ming Chen
Thu Sep 06, 2007 5:10 pm
Forum: Volume 112 (11200-11299)
Topic: 11266 - Equations
Replies: 15
Views: 5166

Input

Code: Select all

3
6 325
10 25
41 255
36 78
10 100
25 125
200 575
8 20
6 6
5 5
-9 -9
8 8
1 1
7 7
-8 -8
10 10
6 -100
-5 -1
0 26
-1000 999
6 14
5 20
7 48
Output

Code: Select all

56
1
16468

Hope it helps.
by Wei-Ming Chen
Sun Sep 02, 2007 10:29 am
Forum: Volume 112 (11200-11299)
Topic: 11264 - Coin Collector
Replies: 14
Views: 5453

Ah,very sorry. Something wrong happened when I copy the outputs. :oops:

Yes,the answer of that case is 14 actually..
by Wei-Ming Chen
Sun Sep 02, 2007 8:24 am
Forum: Volume 112 (11200-11299)
Topic: 11264 - Coin Collector
Replies: 14
Views: 5453

Input

Code: Select all

7
7
1 5 9 74 111 121 159
10
1 2 3 4 5 6 7 8 9 10
5
1 2 4 8 15
8
1 5 9 17 25 33 42 100
16
1 2 4 17 58 69 125 254 478 1023 10000 145236 172589 172590 1000000 10000000
2
1 2
7
1 2 3 6 12 24 48
Output

Code: Select all

5
2
4
5
14
2
6
Hope it helps.
by Wei-Ming Chen
Mon Aug 13, 2007 5:03 am
Forum: Volume 8 (800-899)
Topic: 819 - Gifts Large and Small
Replies: 7
Views: 5720

and how about this I/O ?

Code: Select all

10
6 20
7 15
8 30
10 78
-98 12
0 478
96 147
-36 -7436
1 -23
4 6

Code: Select all

Gift 1
Minimum area = 1516378.765
Maximum area = 31316346.000
or can you give me some I/O? thanks
by Wei-Ming Chen
Sun Aug 12, 2007 7:02 pm
Forum: Volume 8 (800-899)
Topic: 819 - Gifts Large and Small
Replies: 7
Views: 5720

I have got wrong answer Can someone tell me the I/O below is right? 25 6 47 88 102 147 963 -68 896 147 85 -32 0 14 687 452 398 -120 1325 400 -1 789 -102 987 652 1020 -157 698 -47 -321 -474 87 -12 0 0 144 -987 136 -488 989 121 102 1369 631 -789 -741 248 573 100 101 -983 0 my output Gift 1 Minimum are...
by Wei-Ming Chen
Sat Aug 04, 2007 6:36 am
Forum: Volume 112 (11200-11299)
Topic: 11247 - Income Tax
Replies: 50
Views: 20845

Try to avoid using double

Go to advanced search