When submitting problems to the online UVa Judge each program should have the following attributes
- compileable by an ANSI standard C++ compiler such as the g++ gnu linux compiler
- Have no include files that are not standard C++. The usually included #include “stdafx.h” file from Microsoft visual studio is not allowed.
- If using MVSC be sure and turn off pre-compiled headers.
- Have your program read from stdin and write to stdout using cin and cout. Never create and open files.
Test your program by creating a data file say data.dat and redirect it into the executable. In linux you do something like prog < data.dat on the command line. In MVSC go to project |properties |configuration properties| debugging and then place <data.dat in the command arguments slot. It then will automatically redirect the file into your program when you run it as stdin. Capice!? Put the data.dat file in the project under the second project name directory directory in the project. This is where the readme file is located.
Comments and other words of wisdom
- Start your program by reading in the data and printing out the data. Do this before you add other code to process the data. THIS IS IMPORTANT.
Problems of interest from the UVa site
Very Easy (12372, 11498, 11172, 11727, 12403)
Easy (1339, 11636, 10114, 11559, 11799, 10041, 10038, 10110, 12015, 12503)
Medium (119, 573, 661, 10141, 10324,11507)
Problems that involve recursion ( 673, 10970)
Problems that use a stack (127,514,732)
Problems that use a queue (10172,10901,11034)
Problems that use a linked list (11988) Rare instance of a list
Interesting Math Problems (10105, 10018, 11388, 10077)
Graph Problems : DFS and BFS (118,280,469,572,11831,11906,12442)