Announcements (Search)

Post code

by bbi5291 on Feb 26, 2009 - 10:48:19 pm UTC
  • (2/0)
Oh yeah, Hanson installed a script that allows you to use the tags [ code] and [ /code] (only without those spaces) in order to post code; it also automatically highlights keywords and other things. It even autodetects whether the language is Pascal or C/C++.

#include <iostream>
using namespace std;
int main()
cout << "Hello World!" << endl;
return 0;

writeln('Hello World!');

Happy New Year!

by bleung91 on Jan 26, 2009 - 5:08:55 am UTC
  • (5/1)
Happy New Year, guys!!

恭喜發財! 不用懶惰!

(Happy new year! Don't be lazy! Hard work can solve all your problems!)

Comment abuse

by hansonw1 on Jan 19, 2009 - 2:16:38 am UTC
  • (6/1)
Please stop this nonsense.

Ammar: enjoy your ban from comments and chat.


by hansonw1 on Jan 12, 2009 - 4:00:15 am UTC
  • (3/0)
There are now quite a number of analyses!
Conveniently, there is now a link on the Problems page that shows all analyses that are viewable for you.

Problems page

by hansonw1 on Jan 05, 2009 - 1:56:21 am UTC
  • (2/0)
Some slight improvements:
- Default size is now 50, for convenience
- The time/memory columns were redundant, and are now replaced with the percent of submissions that are Accepted.

By the way: should the 'Points' sort be in increasing or decreasing order?

Submissions: Open!

by hansonw1 on Dec 30, 2008 - 7:03:04 pm UTC
  • (5/0)
You should now be able to see others' submissions for problems you've fully solved.
To prevent copy+pasting, you can only see them as images.


by hansonw1 on Dec 30, 2008 - 3:59:41 pm UTC
  • (1/3)
Accidentally deleted some (recent) saved source files :(
This affects the last week or so of submissions (last backup)
Hopefully there was nothing important in there... I apologize for any inconvenience.


by hansonw1 on Dec 22, 2008 - 3:40:56 pm UTC
  • (3/0)
To circumvent hard-coding attempts (e.g. CCC Stage 2 Snowflakes, Mobile) I implemented a batching system.
Certain test cases will be grouped together to form a 'super test-case'.
You'll only get points if ALL of the sub-testcases in a group are correct.

Frivolous posting

by bbi5291 on Dec 14, 2008 - 1:20:11 am UTC
  • (6/0)
OK seriously guys, this spamming is ridiculous. You are abusing this discussion board. You want to talk about things like this, do it over MSN. From now on I will be deleting posts that are essentially without value.

g++ Compile Errors

by hansonw1 on Dec 11, 2008 - 3:37:35 am UTC
  • (2/0)
Some tips about strange compile errors:
  • Weird stuff about iterators, templates, etc: this means one of your variables is using the name of a function
    (like min, count, fill) These functions are included by default in <iostream> in g++. (not in VC++)
  • Usually the name of the variable will be mentioned in the error.
  • math.h library errors (pow, sqrt) - For some reason g++ doesn't like it when you take the pow or sqrt with mixed types. (float, double or int, float for example)
  • To fix this, make everything a double. (e.g. use pow(double(x), 2.0) instead of pow(x,2) if you're getting this error.)
  • Try to avoid this: for (int i=0; i<N; i++) { code }. In g++, i goes out of scope after the for loop ends, whereas in VC++ it persists. This usually gives errors like "obsolete binding...".
Pay attention to the line numbers! especially "instantiated from".
If I've missed anything, please add to this post.