#pragma once #include "io_base.h" #include #include struct IO : public IOBaseT { friend class IOBaseT; explicit IO(bool sync = false) { if (!sync) { std::ios::sync_with_stdio(false); std::cin.tie(nullptr); } std::cout << std::fixed << std::setprecision(12); } private: template void read1(T &&v) { std::cin >> v; } template void write1(T &&v) { std::cout << v; } };