#define PROBLEM Helloworld // "Env.h"ヘッダが存在していたらインクルードする #if __has_include("../Env.h") #include "../Env.h" #endif #include class Helloworld { public: void solve() { std::cout << "Hello World!" << std::endl; } }; #ifndef YUKICODER_ENV_H int main() { auto problem = new PROBLEM(); problem->solve(); return 0; } #endif //YUKICODER_ENV_H