关于__int128

Posted z1j1n1

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了关于__int128相关的知识,希望对你有一定的参考价值。

定义

  __int128 n,r,g,b,T;
  __int128 ans;
  __int128 f[1025][1025];

取最大值函数

  __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);
  }

其余与整形类似,对于略大于LL范围值计算方便

以上是关于关于__int128的主要内容,如果未能解决你的问题,请参考以下文章