summaryrefslogtreecommitdiffstats
path: root/problems/bs/tester.cpp
blob: 1ae5699a8e357d641465763dd90642d141a43f7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <iostream>
#include <fstream>
using namespace std;

int main (int argc, char *argv[])
{
	ifstream fin(argv[1]);
	long long n, tmp;
	fin >> n;

	for (int i = 0; i < 74; i++)
	{
		cin >> tmp;
		if (tmp == n)
		{
			cout << "correct" << endl;
			cerr << 100 << endl;
			return 0;
		}
		else if (tmp > n)
			cout << "high" << endl;
		else
			cout << "low" << endl;
	}

	cerr << 0 << endl;
	return 0;
}