Fifnmar : 牛刀小试:程序设计能力实训 1041
5 年,6 月前
我在这道简单题中应用了一些标准库设施。
其中, inner_product 本来是 transfrom_reduce ,但我们 OJ 的 C++17 竟然没有!它支持不完全可还行。所以我换了。
template < typename F > inline void repeat ( uint32_t const times , F func ) {
for ( uint32_t i = 0 ; i < times ;
...查看全文