Search found 4 matches

by Karkat_Vantas
Thu Nov 27, 2014 10:58 pm
Forum: Volume 100 (10000-10099)
Topic: 10013 - Super long sums
Replies: 212
Views: 40373

Re: 10013 - Super long sums

I don't understand why my code is giving me a submission error. It seems to work on the sample cases and what I can find in this forum. Can someone please explain why this is occuring? Thank you for your help. import java.math.BigInteger; import java.util.Scanner; public class Main { public static v...
by Karkat_Vantas
Thu Nov 27, 2014 10:42 pm
Forum: Volume 5 (500-599)
Topic: 567 - Risk
Replies: 46
Views: 16876

Re: 567 - Risk

I don't understand why my code gives a compiler error. Eclipse lets me run it, but uHunt doesn't. Does anyone know why this happens? Thank you for your help. import java.util.Scanner; public class Main { public static void main(String[] args) { Bag<Integer>[] connect; boolean[] marked; int[] dist; i...
by Karkat_Vantas
Sat Nov 15, 2014 7:34 pm
Forum: Volume 116 (11600-11699)
Topic: 11631 - Dark roads
Replies: 11
Views: 4801

Re: 11631 - Dark roads

My code returns a compiler error. In my IDE though, it shows no errors, and no warnings except "Unchecked cast from Bag[] to Bag<Main.Edge>[]". The code runs fine on my machine. What are some reasons why the judge would find a different compiling error? My code also contains different classes (I'm g...
by Karkat_Vantas
Thu Aug 21, 2014 3:01 am
Forum: Volume 109 (10900-10999)
Topic: 10946 - You want what filled?
Replies: 38
Views: 18228

Re: 10946 - You want what filled?

My code has worked for all the sample IO posted here, but It get RuntimeError upon submit. Are there any special cases where that could occur? Thank you. import java.util.*; class Main implements Comparable<Main> { static ArrayList<Main> ans=new ArrayList<Main>(); static int width; static int height...

Go to advanced search