- 博客(3)
- 收藏
- 关注
原创 Party Lamps【DFS】
Party Lamps describe To brighten up the gala dinner of the IOI’98 we have a set of N coloured lamps numbered from 1 to N. The lamps are connected to four buttons: button 1 – when this button is presse...
2019-11-25 21:34:01 137
原创 STL常用函数总结
STL常用函数总结 栈 先进后出,只有一个出口,只能操作最顶端元素。 定义 stack<data_type> stack_name; 例 stack< int > s; 操作 s.empty() 返回bool型,表示栈内是否为空 s.size() 返回栈内元素个数 s.pop() 移除栈顶元素 s.push(a) 向栈中压入a元素 s.top() 返回栈顶元素 ...
2019-11-20 18:26:11 180 1
原创 Karen and Coffee【前缀和/差分】
Karen and Coffee To stay woke and attentive during classes, Karen needs some coffee!Karen, a coffee aficionado, wants to know the optimal temperature for brewing the perfect cup of coffee. Indeed, she...
2019-11-20 16:36:16 308
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人