24 lines
429 B
C++
24 lines
429 B
C++
|
#include "answer.hpp"
|
||
|
#include <iostream>
|
||
|
|
||
|
|
||
|
int main(int argc, char *argv[]) {
|
||
|
if (argc < 2)
|
||
|
error("Please specify the input file as first argument.");
|
||
|
|
||
|
#if !VERBOSE
|
||
|
std::cout.setstate(std::ios_base::failbit);
|
||
|
#endif
|
||
|
|
||
|
std::vector<Input> input = get_input(argv[1]);
|
||
|
std::string result = get_result(input);
|
||
|
|
||
|
#if !VERBOSE
|
||
|
std::cout.clear();
|
||
|
#endif
|
||
|
|
||
|
std::cout << result << std::endl;
|
||
|
|
||
|
return 0;
|
||
|
}
|