lld和I64d

来源:互联网 发布:mac安装多个jdk 编辑:程序博客网 时间:2024/05/29 14:23

Linux用lld
windows用I64d

#include<cstdio>#include<iostream>#include<cstdlib>#include<ctime>#include<cmath>using namespace std;int n,m;long long x,y;int main(){//  scanf("%d%d",&n,&m);    srand((unsigned)time(NULL));    n=rand()%10+1;    m=rand()%10+1;    x=pow(n,m);    y=round(pow(n,m));    cout<<x<<' '<<y<<'\n';    printf("%lld %lld\n",x,y);    printf("%I64d %I64d\n",x,y);}
0 0