Разбивка данных на части по дням

This commit is contained in:
2025-12-01 12:12:16 +00:00
parent 1ca544105e
commit cb82dda2c1
3 changed files with 46 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
#pragma once
#include "record.hpp"
#include <map>
#include <vector>
using DayIndex = long long;
std::map<DayIndex, std::vector<Record>> group_by_day(const std::vector<Record>& recs);
std::vector<std::vector<DayIndex>> split_days(const std::map<DayIndex, std::vector<Record>>& days, int parts);