Computer Science Canada

November DWITE

Author:  saltpro15 [ Wed Nov 24, 2010 4:20 pm ]
Post subject:  November DWITE

might as well get this started, I just submitted Q4 and got 0/5 for an infinite loop, but the code works fine for all 5 test cases on my end, something up?

Author:  A.J [ Wed Nov 24, 2010 4:24 pm ]
Post subject:  RE:November DWITE

No, the testcases seem to be fine. I believe it is just you. Double check your code, etc...

I'll take a look into it if other teams seem to be having this problem.

Author:  saltpro15 [ Wed Nov 24, 2010 4:24 pm ]
Post subject:  RE:November DWITE

nevermind, problem on my end

Author:  saltpro15 [ Wed Nov 24, 2010 4:50 pm ]
Post subject:  RE:November DWITE

Ok what is wrong with question 4, this is the second time I've absolutely made sure everything was right and it still got 0.

Author:  Dan [ Wed Nov 24, 2010 4:51 pm ]
Post subject:  RE:November DWITE

What is your team name?

Author:  saltpro15 [ Wed Nov 24, 2010 5:05 pm ]
Post subject:  RE:November DWITE

Awesome Swatcats

Author:  A.J [ Wed Nov 24, 2010 5:07 pm ]
Post subject:  RE:November DWITE

Make sure that your formatting is correct. Try making up your own testcases, etc...

Author:  saltpro15 [ Wed Nov 24, 2010 5:08 pm ]
Post subject:  RE:November DWITE

nevermind again, I'm just having the worst DWITE ever lol

Author:  Dan [ Wed Nov 24, 2010 5:16 pm ]
Post subject:  RE:November DWITE

You seem to have a formating issue with your last submision but other wise it would have been a 5/5. Your first ended up crashing the judge as it got in an infinite loop (or at least a very long loop) and was outputing a masive amount of 0s.

Author:  ProgrammingFun [ Wed Nov 24, 2010 5:19 pm ]
Post subject:  Re: November DWITE

Does the DWITE bot deduct marks if the question was right only during the second submission?

I screwed up with a wrong file name for output for question 4 Sad

Author:  Dan [ Wed Nov 24, 2010 5:21 pm ]
Post subject:  RE:November DWITE

It does not deduct marks but you get bonus marks if you get it right on the first try. Tho in the end i guses thats the same thing.

Unfonrtly their is not much i can do if you have allready submmited your second submission.

Author:  Shanethe13 [ Wed Nov 24, 2010 5:28 pm ]
Post subject:  Re: November DWITE

I'm potentially having the same issue for problem 5. I've made 5 test cases of my own, and it works for them all, but I got 0/5. Mind checking out Zygohistomorphic Prepromorphism'a solution?

Author:  Dan [ Wed Nov 24, 2010 5:36 pm ]
Post subject:  RE:November DWITE

The judges logs just say that it had to kill your program as it was taking to long and that the output file had no lines of text in it.

Rember that is question allows for some big testcases (up to 100 cogwheels and up to 100 connections between them) and your program has to run in a set time limit (see http://dwite.org/judge).

Some things your can try:


  • Remove any debuging output, it can slow down your programs execution.
  • Output soultions as you find them. If it just output them at the end your program maybe killed before it can output.
  • Recursion can be slow in some cases.
  • Think if their is a faster way to slove the porblem or an algorthim with a lower time complexity.
  • Make some testcases for the worst cases and see how fast your program runs.

Author:  Cyril [ Wed Nov 24, 2010 9:53 pm ]
Post subject:  RE:November DWITE

Ah, I hate correcting typos; please excuse me for being finicky. My last name is Zhang.

Author:  A.J [ Wed Nov 24, 2010 10:36 pm ]
Post subject:  RE:November DWITE

Oh, whoops, my bad Cyril. I actually wrote those articles, so its my fault, I am sorry. Dan should be able to correct it for me.


: