A Sample Problem

At Progteam, we solve programming problems. A programming problem asks you to write a program to perform a particular task. For example, let's take a look at this simple problem:

A + B Problem


Calculate a + b


Two integers a, b (0 <= a, b <= 10)


A single integer, the sum of a and b.

Sample Input
1 2
Sample Output

It does not seem to be very hard, does it? A sample solution in C++ and Java will be as follows.

#include <iostream>
using namespace std;
int main()
  int a,b;
  cin >> a >> b;
  cout << a + b << endl;
  return 0;
import java.io.*;
import java.util.*;
public class Main
  public static void main (String args[]) throws Exception
    Scanner cin = new Scanner(System.in);
    int a = cin.nextInt(), b = cin.nextInt();
    System.out.println(a + b);

The two programs above are straightforward. Note that at Progteam your programs will always be judged by a judge machine, instead of a human. The machine will run your program with test data (typically unknown to you) and check if your program's output matches exactly the correct answer. Therefore there are a few important things to keep in mind:

Judge's Verdicts

Depending on whether your solution is correct or not, the judge will reply with a verdict after you submit your program. A verdict can be one of the following:

Using the Virtual Judge

Most of our practices are held on the Virtual Judge, where you may find problem descriptions and submit to the problems.

First, sign up for vjudge and login with your account. At each Progteam event we will provide you with a contest link. Open the link in a browser and you shall see the contest page. Here you go, read the problems and solve them! Alternatively, in vjudge contest tab you may search for "NYU" and find the ongoing contest in the search result.