Search found 82 matches

by IRA
Mon Dec 03, 2007 6:25 am
Forum: Volume 112 (11200-11299)
Topic: 11219 - How old are you?
Replies: 117
Views: 33738

I try all case in this thread
but still got WA
Who can help me?

My code as follow

Code: Select all

Removed after AC 
Thank's a lot helloneo
by IRA
Tue Oct 09, 2007 2:59 am
Forum: Volume 5 (500-599)
Topic: 571 - Jugs
Replies: 24
Views: 12651

Jan,Thank you!
I got AC
by IRA
Sat Oct 06, 2007 6:46 am
Forum: Volume 5 (500-599)
Topic: 571 - Jugs
Replies: 24
Views: 12651

First,I use BFS search and pruning to solve the problem
When I submit my code.I got Runtime Error.
I don't know what is worng in my code.
Who can help me to look my code.
Thanks in advance!

Code: Select all

Accept...
by IRA
Thu Jan 25, 2007 7:24 pm
Forum: Volume 100 (10000-10099)
Topic: 10003 - Cutting Sticks
Replies: 59
Views: 24363

I use DP method to solve the problem,but still got WA. Who can give me test data to test my program? Thanks in advance! #include <stdio.h> #include <limits.h> int table[100][100]={0}; int profit[100][100]={0}; int data[100]; int n; int len; void process(){ int i,j,k,min=INT_MAX; for(i=n-1;i>=1;i--) ...
by IRA
Thu Jan 11, 2007 2:05 pm
Forum: Volume 103 (10300-10399)
Topic: 10301 - Rings and Glue
Replies: 50
Views: 16280

I used set-union to solve the problem but it always got WA My code as follow Who can help me to find the mistake? I find my mistake and get AC! The input data 4 0.0 0.0 1.0 -1.5 -1.5 0.5 1.5 1.5 0.5 -2.0 2.0 3.5 3 3.0 2.0 2.0 0.0 -0.5 1.0 0.0 0.0 2.0 5 -2.0 0.0 1.0 1.0 -1.0 1.0 0.0 1.0 0.5 2.0 0.0 1...
by IRA
Mon Dec 18, 2006 1:05 pm
Forum: Volume 9 (900-999)
Topic: 903 - Spiral of Numbers
Replies: 12
Views: 6905

Thanks to rio and helloneo!
I know how to solve it.
by IRA
Sat Dec 16, 2006 5:06 pm
Forum: Volume 9 (900-999)
Topic: 903 - Spiral of Numbers
Replies: 12
Views: 6905

I used the same algorithm and got AC with 0.355. I think your implementation of function : number -> coordinate and function : coordinate -> number isn't efficient enough. My step1 & step2 isn't efficient enough. I can't think how to speed it. My method is find the number on which loop then step by...
by IRA
Sat Dec 16, 2006 10:19 am
Forum: Volume 9 (900-999)
Topic: 903 - Spiral of Numbers
Replies: 12
Views: 6905

Who can show me some good idea or algorithm to speed up the problem.
First,I find the the coordinate of the number.
Second,I use the coordinate to find other number.
I use this method then got TLE.
Thanks in advance!
by IRA
Fri Nov 17, 2006 5:21 am
Forum: Volume 102 (10200-10299)
Topic: 10200 - Prime Time
Replies: 202
Views: 61361

Darko wrote:Try adding EPS to the result before printing. It fixed my solution.
Thank you!
I set EPS to 10^-9 and got AC!
by IRA
Fri Nov 17, 2006 4:52 am
Forum: Volume 102 (10200-10299)
Topic: 10200 - Prime Time
Replies: 202
Views: 61361

My previous code is accept.
When I submit it again,it got WA.
I don't know what change in the problem.
I test many test data then still got WA.
by IRA
Thu Nov 16, 2006 3:06 pm
Forum: Volume 102 (10200-10299)
Topic: 10200 - Prime Time
Replies: 202
Views: 61361

Does the problem be rejudged?
by IRA
Mon Aug 28, 2006 12:43 pm
Forum: Volume 110 (11000-11099)
Topic: 11056 - Formula 1
Replies: 34
Views: 16557

Thank you!
I got AC!
by IRA
Mon Aug 28, 2006 11:22 am
Forum: Volume 110 (11000-11099)
Topic: 11056 - Formula 1
Replies: 34
Views: 16557

Does have this input data?

3
Schumacher : 3 min 23 sec 172 ms
Barrichello : 2 min 12 sec 999 ms
Schumacher : 1 min 23 sec 172 ms


is the output as follow?

Row 1
Schumacher
Barrichello
by IRA
Sun Jul 23, 2006 9:03 pm
Forum: Volume 7 (700-799)
Topic: 725 - Division
Replies: 49
Views: 19670

It doesn't use long long to solve the problem.....
I see your method.It doesn't got TLE.
You must to check what step make infinite loop....
by IRA
Sun Jul 23, 2006 8:58 pm
Forum: Algorithms
Topic: 3-LCS problem
Replies: 6
Views: 2599

Thanks to mf...
I know do this will be very slow.
I just want to know the method is work.

Go to advanced search