相关文章
【POJ1823】Hotel
题目链接:http://poj.org/problem?id1823 题意: 有三种操作
1 A M 表示从 A 到 AM-1 住进M个人2 A M 表示从 A 到 AM-1 搬到M个人3 表示查询这个hotel 连续的空房间有多少
题解: 区间合并问题 线段树维护从左端/右端/整段最多连续0的个…
建站知识
2025/3/29 22:27:41
Leetcode 1823.找出游戏的获胜者
原题链接:Leetcode 1823. There are n friends that are playing a game.
The friends are sitting in a circle and are numbered from 1 to n in clockwise order. More formally, moving clockwise from the ith friend brings you to the (i1)th friend for 1 …
建站知识
2025/3/29 23:03:21
poj1823 - hotel
http://poj.org/problem?id1823 Hotel Time Limit: 5000MS Memory Limit: 30000K Total Submissions: 2389 Accepted: 1044 Description
The “Informatics” hotel is one of the most luxurious hotels from Galaciuc. A lot of tourists arrive or leave this hotel i…
建站知识
2025/3/29 22:41:05
hdu-1823 Luck and Love
题目链接:hdu1823二维线段树单点更新区间查询 题意 向一个100*1000的二维空间中插入点,每次查询时,查询区间最大值. 题解 身高既然是100~200,那就相当于100;活泼度相当于1000.所以建立100*1000的二维线段树. 大坑有如下几个输出-1,而不是-1.0输入的h1,h2,a1,a2,大小不一定,需要…
建站知识
2025/3/29 22:36:32
codeforces 1354A 菜鸟题解
codeforces 1354A 菜鸟题解
题目链接:https://codeforc.es/problemset/problem/1354/A 题目解释:
输入为a b c d
总共要睡a分钟;每次休息时间为b分钟;闹铃每次设置后c分钟响;每次被闹铃吵醒需要d分钟睡着࿱…
建站知识
2025/3/29 22:29:39
Quectel EC200A-CN移植
Quectel EC200A-CN移植 一:usb转串口二:usb网卡驱动三:源码修改四:测试 一:usb转串口
usb-serial-option,USB转串口驱动,生产/dev/ttyUSB0-2,分别是DM,AT,PPP 需要使能内核选项如下:
CONFIG_USB_SERIALy
CONFIG_USB_SERIAL_WWANy
CONFIG_US…
建站知识
2025/2/20 21:22:32