Answers for "fast io cpp"

C++
4

fast io c++

#define fast ios_base::sync_with_stdio(false); cin.tie(NULL);
Posted by: Guest on July-15-2021
0

fastinput c++

void fastInput(int &x)
    {
        bool neg=false;
        register int c;
        x =0;
        c=getchar();
        if(c=='-')
        {
            neg = true;
            c=getchar();
        }
        for(;(c>47 && c<58);c=getchar())
          	//bit shifting is faster than other operation
          	//here code below is same as 
          	//x = x*10 + c-48
          
            x = (x<<1) + (x<<3) +c -48;
        if(neg)
            x *=-1;
    }
Posted by: Guest on July-07-2020
0

fast io c++

fastio.pythonanywhere.com   
/* A tool to optimize execution time of C++ codes by replacing methods of
reading and writing variables */
Posted by: Guest on May-04-2021
0

fast io c++

#define FastIO ios_base::sync_with_stdio(false); cin.tie(NULL);
Posted by: Guest on April-01-2021

Browse Popular Code Answers by Language