真正的 高精度只需三行代码(gmp)
2024-05-18 21:26:52
发布于:浙江
需要正确安装gmp
并且在编译器内显示链接gmpxx
#include <iostream>
#include <gmpxx.h>
using namespace std;mpz_class a,b;int main(){cin >> a >> b;cout << a+b;}
全部评论 2
编译错误: /code/judger/test/1824759279519834112/main.cpp:2:21: error: 'mpz_class' does not name a type; did you mean 'class'?
using namespace std;mpz_class a,b;int main(){cin >> a >> b;cout << a+b;}
^~~~~~~~~
class
/code/judger/test/1824759279519834112/main.cpp: In function 'int main()':
/code/judger/test/1824759279519834112/main.cpp:2:53: error: 'a' was not declared in this scope
using namespace std;mpz_class a,b;int main(){cin >> a >> b;cout << a+b;}
^
/code/judger/test/1824759279519834112/main.cpp:2:58: error: 'b' was not declared in this scope
using namespace std;mpz_class a,b;int main(){cin >> a >> b;cout << a+b;}
^2024-08-17 来自 浙江
0需要正确安装gmp
并且在编译器内显示链接gmpxx2024-08-20 来自 浙江
02024-08-20 来自 浙江
0
现在ACGO有Python了,高精度废了
2024-06-24 来自 上海
0最大的问题是如何让
坑C钱C组F织承认Python,高精才算真正废了2024-06-24 来自 浙江
0评论里的删除线是怎么弄的啊,~变成缩小了
2024-06-24 来自 上海
0~~CCF~~
CCF2024-06-24 来自 浙江
0
有帮助,赞一个