From 75727d77da9b518094fd143b66ca4fe1ccd9db8d Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Thu, 10 Oct 2024 16:35:59 +0800 Subject: [PATCH] update --- src/P1969/P1969.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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