diff options
Diffstat (limited to 'problems/bs/tester.cpp')
-rw-r--r-- | problems/bs/tester.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/problems/bs/tester.cpp b/problems/bs/tester.cpp new file mode 100644 index 0000000..1ae5699 --- /dev/null +++ b/problems/bs/tester.cpp @@ -0,0 +1,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; +} |