Homework Introduction
STL
multiset ,
一个是 记录每个学校的所有学生分数的
一个是 记录每个学校的最高分的分数集合
数组记录每个学生所处的学校
数据记录每个学生的成绩
模拟
set<int> s;
// lower_bound() 返回的是地址
// *地址, 得到地址对应的值
切木条:
s.insert(x+1);
// 查询木条
int r = *s.lower_bound(x);
int l = *(--s.lower_bound(x));
cour << r - l;
- Status
- Done
- Problem
- 7
- Open Since
- 2026-3-18 0:00
- Deadline
- 2026-3-31 23:59
- Extension
- 24 hour(s)