本文分类:news发布日期:2025/11/3 13:56:53
打赏

相关文章

最大公约数 gcd

最大公约数 gcd 欧几里得算法 速度不如内置函数! 以 \(\mathcal O(\log(a+b))\) 的复杂度求解最大公约数。与内置函数 __gcd 功能基本相同(支持 \(a,b \leq 0\) )。 inline int mygcd(int a, int b) { return b ? …

View root,dirs,files

View root,dirs,files Referring to os src which location of /lib/python3.12 Code: import os For root,dirs,files in os.walk("../tmp2"): print(\n %s %s %s %(root,dirs,files)) results of console:…

手机版浏览

扫一扫体验

微信公众账号

微信扫一扫加关注

返回
顶部