diff --git a/src/P1969/P1969.cpp b/src/P1969/P1969.cpp index c0e5313..ebe75a7 100644 --- a/src/P1969/P1969.cpp +++ b/src/P1969/P1969.cpp @@ -1,9 +1,7 @@ #include #include - using ull = unsigned long long; -static ull a, b, ans, n; template class ReadNumber{ @@ -20,6 +18,7 @@ public: } while(isdigit(c)){ n=n*10+(c-'0'); + c=getchar(); } t = n*w; return *this; @@ -30,6 +29,8 @@ static ReadNumber readull; static auto &is = readull; static auto &os = std::cout; +static ull a, b, ans, n; + int main(){ is>>n; for(size_t i{0};i