Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
#include <utility>
#include <algorithm>
#include <vector>
int calc_bonus(int streak) {
if (streak == 2 || streak == 3) {
return 1;
} else if (streak == 4) {
return 2;