Current work

This commit is contained in:
2026-08-03 19:03:58 +01:00
parent b48299efb7
commit a79ff12290
46 changed files with 1345 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
// #include "../../debugging.h"
#include <algorithm>
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
int main() {
freopen("blist.in", "r", stdin);
freopen("blist.out", "w", stdout);
int n, res = 0;
cin >> n;
vector<int> bucketsAtTimeT(1000);
for (int i = 0; i < n; i++) {
int s, t, b;
cin >> s >> t >> b;
for (int j = s; j <= t; j++) {
bucketsAtTimeT[j] += b;
res = max(res, bucketsAtTimeT[j]);
}
}
cout << res;
}