摘要: 我看了下其他人的wp,单链表维护一个呀把头节点会更好,双链表就是两个头尾。 单链表 这道题目做到吐血。一定要做好注释,不要把1和0都写不对。 #include <iostream> #include <cstring> #include <algorithm> using namespace std 阅读全文
posted @ 2025-07-24 20:20 .N1nEmAn 阅读(8) 评论(0) 推荐(0)
摘要: 离散化 给出x和c在数轴上赋值,给l和r求区间和。 #include <iostream> #include <cstring> #include <algorithm> #include <vector> #include <climits> using namespace std; int ma 阅读全文
posted @ 2025-07-24 15:50 .N1nEmAn 阅读(10) 评论(0) 推荐(0)