This commit is contained in:
Zengtudor 2024-10-10 15:06:17 +08:00
parent 670ed0868a
commit bd8c51e9c1

View File

@ -10,7 +10,7 @@ class ReadNumber{
char c; char c;
T w,n; T w,n;
public: public:
ReadNumber&operator>>(T &t){ ReadNumber& operator>>(T &t){
c=(char)0,w=1,n=0; c=(char)0,w=1,n=0;
while(!isdigit(c)){ while(!isdigit(c)){
if constexpr (std::is_signed_v<T>){ if constexpr (std::is_signed_v<T>){
@ -30,7 +30,6 @@ static ReadNumber<ull> readull;
static auto &is = readull; static auto &is = readull;
static auto &os = std::cout; static auto &os = std::cout;
int main(){ int main(){
is>>n; is>>n;
for(size_t i{0};i<n;i++){ for(size_t i{0};i<n;i++){