Announcements (Search)
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++.
C++:
Pascal:
C++:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World!" << endl;
return 0;
}
Pascal:
begin
writeln('Hello World!');
end.
Happy New Year!
by bleung91 on Jan 26, 2009 - 5:08:55 am UTC
Happy New Year, guys!!
恭喜發財! 不用懶惰!
勤奮工作可以解決所有的問題!
(Happy new year! Don't be lazy! Hard work can solve all your problems!)
恭喜發財! 不用懶惰!
勤奮工作可以解決所有的問題!
(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
Please stop this nonsense.
Ammar: enjoy your ban from comments and chat.
Ammar: enjoy your ban from comments and chat.
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.
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
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?
- 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
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.
To prevent copy+pasting, you can only see them as images.
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.
This affects the last week or so of submissions (last backup)
Hopefully there was nothing important in there... I apologize for any inconvenience.
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.
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
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
Some tips about strange compile errors:
If I've missed anything, please add to this post.
- 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...".
If I've missed anything, please add to this post.
Post code
by bbi5291 on Feb 26, 2009 - 10:48:19 pm UTC