枚举整除值

来源:互联网 发布:linux启动mysql客户端 编辑:程序博客网 时间:2024/06/03 17:12

有点神奇

int last;

for(int i=1;i<=n;i=last+1)    

    last=min(n/(n/i),m/(m/i));


0 0