From bd8c51e9c1f8f64a1352ab6a5986ae3d38c2e59b Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Thu, 10 Oct 2024 15:06:17 +0800 Subject: [PATCH] update --- src/P1969/P1969.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/P1969/P1969.cpp b/src/P1969/P1969.cpp index 213d10a..c0e5313 100644 --- a/src/P1969/P1969.cpp +++ b/src/P1969/P1969.cpp @@ -10,7 +10,7 @@ class ReadNumber{ char c; T w,n; public: - ReadNumber&operator>>(T &t){ + ReadNumber& operator>>(T &t){ c=(char)0,w=1,n=0; while(!isdigit(c)){ if constexpr (std::is_signed_v){ @@ -30,7 +30,6 @@ static ReadNumber readull; static auto &is = readull; static auto &os = std::cout; - int main(){ is>>n; for(size_t i{0};i