Milwaukee School of Engineering, 2026

Contents

Setting Up Your Laptop

MSOE Laptops

Sign in to MSOE laptops using the default username and the password provided when you pick up the laptop. The rules page describes the software that will be on the laptop. If the laptop asks if you want to download and install updates, you should decline the prompts. The installs can take a significant amount of time, and the updates are not needed for the contest.

Team-Supplied Laptops

See the rules page for information about laptop requirements for teams and what software should be installed on them.

General Directions

For teams in Diercks Hall, connect to the WiFi network MSOE-Guest. No password is needed. Teams in the ITC will connect to DirectSupplyGuest. The password is posted many places around the ITC.

The following instructions describe different programming environments teams can use. Some of the instructions give file locations. These locations are recommendations, not requirements. You may set up the projects and files in any fashion you choose. The contents of the laptop are not visible to the judges. Only source files submitted via the scoring website will be used for evaluation.

Using Java

IntelliJ

IntelliJ is a popular, full-featured integrated development environment for Java programmers.

  1. Double-click the IntelliJ icon on the desktop.
  2. In the Welcome panel, click on New Project in the upper right.
  3. Ensure Java is selected, change the Name to practice, and click Create. When working on problems, you will use names like Prob1, Prob2, etc. For the project location, browse to a convenient folder such as your Documents folder.
  4. You will see an initial program. You can run this if you like, but you will want to change its name as discussed in the next step. If IntelliJ asks about excluding folders from Microsoft Defender, you can answer yes, but either answer works fine.
  5. Important: the class and file will be named Main.java. You must change this so judges know what problem is being solved. Right click on the class name (right after public class), select Refactor and then Rename…, and rename the Main class to Practice. For solutions to problems, use problem-specific names like Prob1, Prob2, etc. Doing this will also change the filename, which is good since the judge will use that to know which problem is being solved.
  6. Click on any of the green arrows to run your program. You will see a console output window with your text on it. If prompted, select Run ‘Practice.java’.
  7. Modify and re-run the program until it is adequately tested and works on all cases.
  8. Select Save All from the File menu.
  9. Follow the instructions at Submitting Programs to submit your solution.

Additional IntelliJ Notes

  • Red squiggles mark source code errors. You can hover your mouse over the text to get an error message or click on the Problems tab at the bottom of the screen to see a full list of issues.
  • You can use the same project for all of your solutions, just giving them problem-specific names such as Prob1 and Prob2. Each will have its own main, and you can use the drop-down next to the green arrow in the upper right to control which solution is being run.
  • When a program needs to open a data file, be sure the data file is in the “top level” project directory; this is a directory that will contain src as a subdirectory.

BlueJ

BlueJ is used to develop Java code at many institutions.

  1. Double-click the BlueJ icon on the desktop.

  2. Project | New Project…

  3. Enter C:\BlueJProjects\ in the Location name field.

  4. Enter probN (e.g., “prob3”) in the Name field.

  5. Click “OK”

  6. Click New Class…

  7. Enter “ProbN” for the name.

  8. Click “OK”.

  9. Double-click the “ProbN” block icon. This will open an edit window for your program.

  10. Add the declaration for main():

    public static void main(String[] args) {
    }
    

    It is important to add this since it is required for judges running your program.

  11. Write your program. For practice, greet the user:

    System.out.println("Hello from MSOE!");
    
  12. Click “Compile”. If there are errors, fix them and recompile.

  13. To run program, right-click on the block icon in the project screen. Select void main(String[] args) from the menu. Click “OK” to specify no arguments. A console window will appear with your program’s output and will accept your keyboard input.

  14. When you are satisfied, select Project | Close

  15. Follow the instructions at Submitting Programs for Judging to submit your solution. Note, if you followed these instructions, your source file will be located at C:\BlueJProjects\[project name]\[class name].java. This is the file to submit for judging.

Command Line Java

The Java command line compiler and JVM are available for those who prefer that environment.

  1. Double-click the Notepad++ icon on the desktop. This is a good, light-weight text editor for Java code. It will start with a new blank file. Select File | Save As and navigate to C:\JavaCode and save the file with a name such as ProbN.java where N is the problem you are working on.

  2. Enter your Java program. Make sure there is a main method, since that is where the judge will start your program. See Hello.java for an example.

  3. When you are ready to test your program, save the file. You may close Notepad++ or leave it open.

  4. Use the Windows Start button to open a Command Prompt.

  5. Change directory to C:\JavaCode:

    cd C:\JavaCode
    
  6. Compile the program by running the compiler: javac ProbN.java If errors are found, fix them by editing the source file.

  7. Run the program: java ProbN

  8. Follow the instructions at Submitting Programs to submit your solution. Your source file will be located at C:\JavaCode\[class name].java. This is the file to submit for judging.

Python

Spyder

An integrated development environment (IDE) for Python. See the Spyder site for more information.

  1. Click on the Spyder icon on the desktop.
  2. Click on File|Save As…, browse to C:\PythonCode, and save the file with the name of the problem such as prob1.py or prob2.py.
  3. Enter the program.
  4. Click on the green arrow at the top to run your program. The output will show up in the Console window in the lower right.
  5. Follow the instructions at Submitting Programs to submit your solution.

Anaconda

Anaconda allows you to run Python code from the command prompt:

  1. Use Notepad++ or another text editor to edit your Python source code. Save it in C:\PythonCode. It is recommended that you use filenames like prob5.py.

  2. Run “Anaconda Prompt” from the desktop.

  3. Change to the python code directory:

    cd \PythonCode
    
  4. Run your code; for example, python prob5.py

  5. If your leading whitespace is a mixture of tabs and spaces, you may violate Python formatting rules. In Notepad++, select Edit|Blank Operations|Tab to Space (or “Space to Tab (Leading)”) to clean up the formatting.

  6. Follow the instructions at Submitting Programs to submit your solution.

C++

C++ can be installed to run from the command line, but this is only recommended for teams with experience in doing so. Ask for help if you wish to pursue this and do not know where to start.

Microsoft Visual Studio

Visual Studio has strong support for C++. Each problem is its own small project:

  1. Start Visual Studio from the Start menu or the taskbar.

  2. On the start window, click Create a new project. (If Visual Studio is already open, use File | New | Project….)

  3. Pick the Console App template marked C++ (not C#), then click Next. If it is not listed, set the language filter at the top to C++.

  4. Set the Project name to the problem, such as Prob1, and set the Location to C:\cpp. Check Place solution and project in the same directory, then click Create.

  5. Visual Studio creates Prob1.cpp with a “Hello World!” main already in it. Replace that with your code. See hello.cpp for another example.

  6. Press Ctrl+F5 (Debug | Start Without Debugging) to build and run. Your program runs in a console window, which stays open until you press a key. Build errors are listed in the Error List window at the bottom; double-click an error to jump to that line.

  7. If you see error C4996 saying a function such as scanf or fopen “may be unsafe”, either use cin/ifstream instead or add this as the very first line of your file:

    #define _CRT_SECURE_NO_WARNINGS
    
  8. When you are ready for your program to be judged, follow the instructions at Submitting Programs to submit your solution. If you followed these instructions, the file to submit is C:\cpp\Prob1\Prob1.cpp (with your project name in place of Prob1). Submit only the .cpp file, not the project or solution files.

Submitting Programs

Using the competition management website

NOTE: You will not be able to submit solutions until the contest starts. But read through these directions so that you can submit when the time comes.

  1. Each team was handed a page of directions to set up their account and log in. Note the directions are set up for both people with phones and people without. Ask a floor assistant if you need help with the directions. Pick a reasonably good password for your account. Two randomly chosen words work well. Make sure you write the password somewhere safe. It can be reset, but that takes time.
  2. Visit the Standings tab to see the list of teams. When the competition starts, you might check this page to identify problems that lots of teams are solving. The standings will also be displayed on a large screen in your room.
  3. Click on the Home tab to go to the list of problems. Initially there will be just a practice problem; the other problems will become visible at the contest start.
  4. Test submitting a solution: click on the practice problem and it will describe what you are supposed to submit. Write a short “hello world” program and submit it to the system. Normally a judge would then run your program against test data, but practice problems are not seen by the judge. Instead, the system will automatically respond with an “incorrect solution” just so you see what that looks like. Resubmit the same code, and this time the system will automatically mark your solution as correct.
    NOTE: this is the only place where the system responds automatically. The real solutions are judged by hand and all responses are written by the judges.
  5. During the contest, when you have a solution to a problem, you will repeat the above steps for that problem, clicking on Choose File to select the source code file (e.g., Prob1.java) to submit from your computer. After a solution is checked, you will see a small red circle or a green checkmark to indicate if the solution passed or not. You should then click on the arrow to view the feedback (even if it passed).
  6. You may see a small white box at the top of the screen next to the Announcements tab. This indicates a new announcement; browse to the Announcements tab to view it.

You can resubmit solutions, but note that you lose points for each incorrect solution you submit. Let a floor assistant know if you have additional questions about why a submission was incorrect.

When a problem statement mentions data files, these will be available on the same page as the problems. See the next section for details.

Data Files

Sample data files are provided for some programming problems. These are provided on the Home tab during the competition. When you click on a problem, if that problem has data files then there will be an expandable box for them. Click on the ^ to the right to expand, and use the download button to download each file. The data files will be saved in your standard download location. Ask a floor assistant for help if you cannot find them. There is a view button as well, but this is intended for a quick way to view files during the contest; you should only run your code against files saved using the download button. This ensures your data file is formatted the same way as the files used by judges. If you need additional test cases, it is good to leave the original data files untouched; copy the provided files and edit the copies instead.

Where to store your data files

  • Java with IntelliJ: in the top directory of your project, the directory that contains your src directory.
  • Java with BlueJ: in the project subdirectory, such as C:\BlueJProjects\prob7\data.txt.
  • Java from the Command Line: in the source subdirectory such as C:\JavaCode\data.txt.
  • Python using Spyder or Anaconda: in the source subdirectory, such as C:\PythonCode\data.txt.
  • C++ with Visual Studio: in the project directory, next to your .cpp file, such as C:\cpp\Prob1\data.txt. Visual Studio runs your program from that directory.

As for program files, data files can be stored wherever is convenient for the team.

Be careful with file extensions

When saving a data file, Windows sometimes adds an extra extension. For example, input.txt can be accidentally saved as input.txt.txt, making it hard for your program to find the file it needs. If your Windows computer is not configured to show these extensions, do the following:

  1. Open File Explorer
  2. Select View | Show > | File name extensions

Acknowledgments

These instructions were developed by Drs. R. Hasker, D. Rothe, E. Durant, H. Welch, and C. Tritt.