__int128

  __int128 getmax(__int128 a,__int128 b){
    if (a>b) return(a);else return(b);
  }
  void print(__int128 x){
        if (x==0) return;
    if (x) print(x/10);
    putchar(x%10+'0');
  }

void scan(__int128 &x)//输入
{
    x = 0;
    int f = 1;
    char ch;
    if((ch = getchar()) == '-') f = -f;
    else x = x*10 + ch-'0';
    while((ch = getchar()) >= '0' && ch <= '9')
        x = x*10 + ch-'0';
    x *= f;
}

 void scan(__int128 &x)//输入
{
    x = 0;
    int f = 1;
    char ch;
    if((ch = getchar()) == '-') f = -f;
    else x = x*10 + ch-'0';
    while((ch = getchar()) >= '0' && ch <= '9')
        x = x*10 + ch-'0';
    x *= f;
}

你可能感兴趣的:(C/C++语言知识)