[信息学奥赛一本通T1684-Secret Message 秘密信息] 平平无奇的Trie树 摘要:```cpp #include #define ULL unsigned long long #define LL long long #define PII pair using name…… 题解列表 2024年09月19日 0 点赞 1 评论 186 浏览 评分:9.9
c++ 一步到位 摘要:解题思路:直接输出注意事项:输入输出的符号不要搞反就好参考代码:#include<iostream>using namespace std;int main(){ int a,sum; c…… 题解列表 2024年09月18日 0 点赞 0 评论 435 浏览 评分:0.0
[搭配购买(buy)] 并查集 + dp动态规划(一维优化版) 摘要:# 并查集 + 动态规划一维优化 ###### 分析题目 所有的云朵都有关联 可以联想到并查集 将所有的相关元素全部存进根节点 并将其视为一个大的连通块(整体) ###### 同时 又是一眼的dp…… 题解列表 2024年09月18日 0 点赞 0 评论 378 浏览 评分:9.9
[信息学奥赛一本通T1471-Phone List] Trie字典树做法 摘要:# Trie tree: [ std::cin >> student.scores…… 题解列表 2024年09月17日 0 点赞 0 评论 484 浏览 评分:9.9
二进制分类 摘要:参考代码:#include<bits/stdc++.h> using namespace std; int wei(int n) { int cnt=0; while(n!=0) {…… 题解列表 2024年09月17日 0 点赞 0 评论 141 浏览 评分:0.0
二进制移位练习 摘要:参考代码:#include<bits/stdc++.h> using namespace std; //int wei(int n) //{ // int cnt=0; // while(n…… 题解列表 2024年09月17日 0 点赞 0 评论 223 浏览 评分:0.0
位运算是个简便方法 摘要:参考代码:#include<bits/stdc++.h> using namespace std; int wei(int n) { int cnt=0; while(n!=0) {…… 题解列表 2024年09月17日 0 点赞 0 评论 190 浏览 评分:0.0
1049:结构体之时间设计--思路 #C++ 摘要:##### 闰年条件 1. 4 的倍数 2. 400 的倍数 ```cpp year % 4 == 0 && year % 100 != 0 //% 取模 ``` ```cpp …… 题解列表 2024年09月17日 1 点赞 0 评论 316 浏览 评分:0.0
[信息学奥赛一本通T1547-区间和]-树状数组写法 摘要:# 树状数组: ### 求区间和  ```cpp #include #d…… 题解列表 2024年09月17日 0 点赞 2 评论 218 浏览 评分:9.9