gcd
STL库中有个template化的非递归版gcd,需要调用<alogorithm>
使用方式是
| |
手写的话:
递归版:
| |
非递归版:
| |
exgcd
递归版:
| |
非递归版:
| |
赏
使用支付宝打赏
使用微信打赏
若你觉得我的文章对你有帮助,欢迎点击上方按钮对我打赏
评论
来发评论吧~
预览: