查看原帖
1273321
iamthestormthatisapp楼主2024/9/22 20:16

200000*(200000+1)/2 这个式子在计算器里的答案是20000100000,但这么写

#include <iostream>
using namespace std;

int main()
{
   cout<<200000*(200000+1)/2;
   return 0;
}

的答案是672747168

为什么?

2024/9/22 20:16
加载中...