随笔分类 -  算法

摘要:1. 从后向前传递 template <typename Ntype> Ntype Gcd(Ntype a, Ntype b) { if (a < b) std::swap(a, b); while (b != 0) { auto temp = a % b; a = b; ... 阅读全文
posted @ 2012-07-06 15:26 Mimaoku