摘要: C++模板: __gcd(x,y);int、long long类型都可以,需要注意的是两个类型必须要相同,还有不能用浮点型,当然手写gcd函数也是可以的,它头文件是algorithm。 #include<bits/stdc++.h> #include <iostream> #include <alg 阅读全文
posted @ 2020-10-21 14:52 neverstopcoding 阅读(325) 评论(0) 推荐(0) 编辑