Search found 9 matches

by AbyssalGreed
Thu Sep 04, 2014 1:49 am
Forum: Volume 103 (10300-10399)
Topic: 10394 - Twin Primes
Replies: 101
Views: 48552

Re: 10394 - Twin Primes

:) i'm still new to java.. and I don't know how to use Buffered Redear.. hmmm :) guess i'll be studying it then!! thanks for the advice..
by AbyssalGreed
Thu Sep 04, 2014 1:45 am
Forum: Volume 103 (10300-10399)
Topic: 10375 - Choose and divide
Replies: 23
Views: 16471

Re: 10375 - Choose and Divide

I've change it to System.in before submiiting.. it's still TLE.. hehe!! oopss! sorry if I forgot to change that in my code!!! my faullt!
by AbyssalGreed
Thu Sep 04, 2014 1:43 am
Forum: Volume 5 (500-599)
Topic: 583 - Prime Factors
Replies: 171
Views: 61198

Re: 583 - Prime Factors

I remove the Scanner sc = new Scanner(new File("input.txt")); and change it to system.in before I submitted it to UVA, it's still giving me TLE, is there any way I can speed up running this code?


thanks!!
by AbyssalGreed
Wed Sep 03, 2014 10:24 am
Forum: Volume 5 (500-599)
Topic: 583 - Prime Factors
Replies: 171
Views: 61198

Re: 583 - Prime Factors

Here's another problem I tried in java and the OJ gives me TLE...
is there any way you can make this run faster??
any help will be much appreciated.. thanks in advance :)


import java.lang.*;
import java.math.*;
import java.util.*;
import java.text.*;

class Main
{
public static void main(String ...
by AbyssalGreed
Wed Sep 03, 2014 10:08 am
Forum: Volume 103 (10300-10399)
Topic: 10375 - Choose and divide
Replies: 23
Views: 16471

Re: 10375 - Choose and Divide


import java.io.*;
import java.lang.*;
import java.math.*;
import java.util.*;
import java.text.*;

class Main
{
public static void main(String args[])throws Exception
{
Scanner sc = new Scanner(new File("input.txt"));
DecimalFormat df = new DecimalFormat("0.00000");
while(sc.hasNext ...
by AbyssalGreed
Wed Sep 03, 2014 9:22 am
Forum: Volume 103 (10300-10399)
Topic: 10394 - Twin Primes
Replies: 101
Views: 48552

Re: 10394 - Twin Primes

I don't know why this is RE, can someone please help me??
thanks in advance.. :)



import java.util.*;
import java.math.*;
import java.text.*;
import java.lang.*;

class Main
{
public static void main(String abyss[])throws Exception
{
Scanner sc = new Scanner(System.in);

ArrayList<Integer ...
by AbyssalGreed
Mon Sep 01, 2014 12:24 pm
Forum: Volume 6 (600-699)
Topic: 640 - Self Numbers
Replies: 47
Views: 25879

Re: 640 - Self Numbers

hi!
i need help with 640 - self number, here is my code:
and also can someone pls send me an output for larger number; :)


import java.io.*;
import java.util.*;
import java.math.*;
import java.text.*;
import java.lang.*;

class Main
{
public static void main(String args[])
{
setNumbers ...
by AbyssalGreed
Mon Sep 01, 2014 9:38 am
Forum: Volume 104 (10400-10499)
Topic: 10451 - Ancient Village Sports
Replies: 22
Views: 13571

Re: 10451 - Ancient Village Sports

thanks for helping :)
by AbyssalGreed
Tue Aug 26, 2014 7:52 am
Forum: Volume 104 (10400-10499)
Topic: 10451 - Ancient Village Sports
Replies: 22
Views: 13571

Re: 10451 - Ancient Village Sports

please help me with my code.
I don't know why i'm always getting a WA..
please help :)


import java.util.*;
import java.math.*;
import java.io.*;
import java.text.*;

class Main
{
public static void main(String args[])throws Exception
{
Code Remove after getting AC in uva 8-)
}
}

Go to advanced search