When submitting problems to the online UVa Judge each program should have the following attributes
- compileable by aan 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)
As we work on problems this semester we will add to this list.
Easy (1339, 11636, 10114, 11559, 11799, 10041, 10038, 10110)
Medium (573, 10141, 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 a list
Interesting Math Problems (10105, 10018, 11388, 10077)