Download 2a427f8aa5d6986429d24cb39d121bd7 tcdistrib.tar.bz2 10076 bytes
TopCoder(TM) Extra Utils
========================
(c) 2006 Arnold Joseph Noronha.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
DISCLAIMER: The author of these program(s) is not associated in any way to
TopCoder Inc. Any trademarks used herein are the properties of their
respective owners.
About:
=====
I assume you already know about TopCoder. Well this is a subset of the whole
set of tools I use for TopCoding.
1. car : Compile and Run. This is not a new concept, most TopCoders, at least
at CMI, have such a script in hand.
Features: C Support, can pass compiler arguments, assumes -Wall by default,
output file is always a.out.
2. tcstdio.h : Use this to input and print output in TopCoder format. i.e.
read a vector when the input is in the format {"","",..} etc.
Features: Specialised overloading, single function call for all datatypes
including, vectors of vectors.
3. carin (with my code template). With TZTester one can test your program
against all the topcoder test cases. How do you test against some hand made
case without using the applet? Here's the answer. Once you have a specialised
code template in hand (see mine for an example) carin will scan your code,
use tcstdio to take in input from keyboard. It supports all functions with
parameter types that tcstdio.h, which means all functions you encounter in
topcoder.
4. my code template.
Features: Avoid bugs due to non-initialised global variables. Each time the
topcoder function is called, all the class members are reset.
While this can cause problems with local recursions, its usually more
handy - when a problem the code can be deleted. Its just one line of
handy code!
Special features for carin.
rep,FOR,FOZ,{FOT is broken I think, not too hard to fix that tho}
INSTALL
=======
Place car, carin in a path directory. I prefer ~/.local/bin, but this
is upto you. Link testcasecreate.sh to TOCODER_testcasecreat.sh in a similar
path directory. Copy the lib directory into your TopCoder directory.
Happy coding.
CONTACT
=======
arnold AT cmi DOT ac DOT in . Do send me suggestions, bugs, patches etc.
Send me a mail for some more really interesting topcoding stuff;)
------------------------------
http://www.cmi.ac.in/~arnold/tc
a r n o l d AT c m i DOT a c DOT i n