Search found 10 matches

by fangs404
Mon Apr 05, 2004 10:23 pm
Forum: Volume 101 (10100-10199)
Topic: 10152 - ShellSort
Replies: 33
Views: 9375

here's the input/output that my accepted answer used: input num of tests input num of elements input elements of unsorted elements input elements of sorted elements output answer <space> input num of elements input elements of unsorted elements input elements of sorted elements output answer <space>...
by fangs404
Thu Feb 26, 2004 1:49 am
Forum: Volume 100 (10000-10099)
Topic: 10006 - Carmichael Numbers
Replies: 66
Views: 21339

well, i fixed it. it turns out that i wasn't checking to see if the input from the console would be null (although this shouldn't cause a compile error at all), but whatever. it works now.
by fangs404
Mon Feb 23, 2004 11:38 pm
Forum: Volume 100 (10000-10099)
Topic: 10006 - Carmichael Numbers
Replies: 66
Views: 21339

10006 -- peculiar compile error...please help!

my code runs wonderfully on my system, but for some reason, the judge isn't accepting my solution; of all things it gives me a compile error. here's the error: gcj: Internal compiler error: program jc1 got fatal signal 11 i'm using java, and i'm sending it via the e-mail submitter. there are no text...
by fangs404
Tue Jan 27, 2004 6:14 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 193208

Re: congratz dude!

nightdog wrote:good luck with the next problem :)
thanks. hopefully, i won't have any problems any more (other than algorithmical), now that i know the way that the judge wants us to parse and read in strings. thanks for all your help.
by fangs404
Mon Jan 26, 2004 11:14 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 193208

i finally figured out my mistake. as it turns out, i can't use the substring call to parse through the string. the substring call will pick up '\n' and '\r', and to make things a whole lot easier, i just used stringtokenizer. answer accepted!
by fangs404
Sat Jan 24, 2004 1:02 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 193208

fangs404: I don't know java but you need to make sure that your int's do not need to be long int's or something else maybe. nah, that's not the problem. the max value of an int in java is 2147483648, and the numbers we'll be given will be between 0 and 1000000. anything else? here's my most recent ...
by fangs404
Fri Jan 23, 2004 8:11 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 193208

Re: Access denied

If you got an answer from the online judge saying you're not permitted to use that host to submit, it means you have the option to only accept submissions by e-mail. you can either submit your code using the e-mail you specified when you subscribed or change that parameter, which can be done by goi...
by fangs404
Fri Jan 23, 2004 2:27 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 193208

You don't have to read all the input and then output all the answers at once. You can solve each input one at a time, like you did in your first example. PS... Please shorten your signature it makes the page width and all the text messed up. that's the problem, though. it won't accept my first exam...
by fangs404
Thu Jan 22, 2004 11:15 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 193208

Well, I tried your suggestion, but it's still not accepting it. I tried sending it with the online form, but I get an e-mail saying this: "Access Denied. You aren't authorized to use the Online Judge from that host. -- The Online Judge" I don't know what that means, but whatever. Here's my revised c...
by fangs404
Thu Jan 22, 2004 3:38 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 193208

I've been having a problem submitting this, also. My output seems correct. What could I be doing wrong? [java] import java.io.*; class Main { public static void main(String[] args) { Main puzzle = new Main(); int highest = 0, a = 0, b = 0, temp = 0; String nums, num1, num2; boolean switched = false;...

Go to advanced search