Skip to content

Instantly share code, notes, and snippets.

View pyq's full-sized avatar
🐶

Yongqing pyq

🐶
View GitHub Profile
#include <iostream>
#include <vector>
using namespace std;
int big_average(const vector<int> &vec) {
// we want sum(vec) / vec.size()
int a = vec.size(), quotient = 0, remainder = 0;