update
This commit is contained in:
parent
670ed0868a
commit
bd8c51e9c1
@ -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++){
|
||||||
|
Loading…
Reference in New Issue
Block a user