#define PROBLEM 0 /* The problem # here */
#define TEAM 0 /* Your team # here */
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <stdio.h>
using namespace std;
ifstream in;
ofstream out;
void solve_problem();
int main(int argc, char *argv[])
{
char filename[64];
sprintf(filename, "prob%d.dat", PROBLEM);
in.open(filename, ios::in);
if (!in) {
cout << "could not open input file " << filename << endl;
exit(1);
}
sprintf(filename, "prob%d.out", PROBLEM);
out.open(filename, ios::out);
if (!out) {
cout << "could not open output file " << filename << endl;
exit(1);
}
out << "Program " << PROBLEM << " by team " << TEAM << endl;
solve_problem();
out << "End of program " << PROBLEM << " by team " << TEAM << endl;
return 0;
}
void solve_problem()
{
// TODO: solve the problem!
}