- 博客(3)
- 收藏
- 关注
原创 Lucky Numbers (easy)
B. Lucky Numbers (easy)time limit per test2 secondsmemory limit per test256 megabytesPetya loves lucky numbers. Everybody knows that positive integers areluckyif their decimal represent...
2019-05-31 23:01:32 370
原创 CF 304B
B. Calendartime limit per test : 2 secondsmemory limit per test : 256 megabytesinput : standard inputoutput : standard output Calendars in widespread use today include the Gregorian calend...
2019-01-07 21:28:53 127
转载 ST表
// This is not my aritcleST表的功能很简单它是解决RMQ问题(区间最值问题)的一种强有力的工具它可以做到O(nlogn)O(nlogn)预处理,O(1)O(1)查询最值 ST表是利用的是倍增的思想拿最大值来说我们用Max[i][j]Max[i][j] 表示,从ii 位置开始的2j2j 个数中的最大值,例如Max[i][1]Max[i][1...
2018-10-29 20:06:59 102 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人