摘要:
package mainimport ( "fmt")// pc[i] is the population count of i.var pc [256]bytefunc init() { for i := range pc { pc[i] = pc[i/2] + byte(i&1) }}func 阅读全文
摘要:
#include<vector>#include<algorithm>#include<iostream> using namespace std; void PrinfVectorInt(vector<int> &vec){ for(auto iter = vec.begin(); iter != 阅读全文