Search found 6 matches

by boyeric
Tue Jul 04, 2006 3:43 am
Forum: Volume 5 (500-599)
Topic: 530 - Binomial Showdown
Replies: 137
Views: 33355

I believe there is something funny within this problem. i solved the problem in java, by working on the formula (n-m-1)*...*n / m!, but try first to reduce every multiplier in the numerator with each multiplier in the denominator by their gcd (greatest common devisor), such that we can guarantee, af...
by boyeric
Thu Jun 09, 2005 7:48 pm
Forum: Volume 100 (10000-10099)
Topic: 10013 - Super long sums
Replies: 212
Views: 39832

10013

I've tried really hard and enormous different approaches but still cannot get it work..... i even copy-pasted exactly the same code from C to JAVA except for difference from input/output, but it still gave a TLE error while the same code in C got AC, depresssssed.... Could any JAVA experts who has s...
by boyeric
Thu Jun 09, 2005 4:36 am
Forum: Volume 100 (10000-10099)
Topic: 10013 - Super long sums
Replies: 212
Views: 39832

the second version with TLE. in fact i've seen people with exactly the same algorithm got accepted in C, just dont know why it doesn't work for JAVA..... import java.util.StringTokenizer; /**@author Eric * Created on 2005-6-9 */ class Main { public static void main(String[] args) { short [] res; Str...
by boyeric
Thu Jun 09, 2005 4:29 am
Forum: Volume 100 (10000-10099)
Topic: 10013 - Super long sums
Replies: 212
Views: 39832

10013 by a desperate JAVA user.... MLE + TLE

hi dudes, i am extremely desperate.... i implemented problem 10013 by JAVA using 2 different algorithms and submitted over 25 times, one got Memory Limit Exceeded, and the other Time Limit excceeded.... could any java experts please give me a hand? the first version got MTE: import java.util.StringT...
by boyeric
Fri Jun 25, 2004 9:35 pm
Forum: Volume 2 (200-299)
Topic: 299 - Train Swapping
Replies: 81
Views: 11215

WA 299..... somebody help???

I thought it should be an easy one, but i don't know why i didn't get through..... i used the bubble sort and count the steps of sorting, is this algorithm all right for problem 299?? Thanks in advance! here is my code: (in Java) [java] import java.util.*; class Main{ public static void main(String ...
by boyeric
Sun Jun 20, 2004 5:13 pm
Forum: Java
Topic: [ Java ] Useful methods to save time.
Replies: 12
Views: 10839

Great Job!

great job!
what could i say, nobody knows how frustrated i used to be facing inputs...
thanx a lot!

Go to advanced search