求解这简单的凯撒密码加密 摘要:解题思路:lip = input()result = ""for i in lip: i = chr(ord(i) + 4) i…… 题解列表 2025年05月31日 8 点赞 0 评论 973 浏览 评分:10.0
题目 1010: [编程入门]利润计算 摘要:解题思路: 通过if-else if-else实现不同利润奖金的计算,但是需要注意本题要求整数,所以在计算中将*0.0x改*x/100,避免出现浮点数,不然可能精度错误导致某…… 题解列表 2025年06月01日 2 点赞 0 评论 726 浏览 评分:10.0
DFS深度(sf13d) 摘要:解题思路:深度:一个个遍历下去,不撞南墙不回头(南墙:前面没有可以遍历的对象,回头:回到最近的岔路口,走没有走过的其他岔路)&n…… 题解列表 2025年05月30日 0 点赞 0 评论 195 浏览 评分:0.0
拿汽水瓶换汽水 摘要:解题思路: 首先仔细阅读题目可以得知在拥有一定瓶子数的情况下,每当有三个瓶子就可以换一瓶汽水,所以第一个能想到的是用瓶子数取3的整除得到换取的汽水数,那么将其喝掉后会得到新的瓶子,只需与原…… 题解列表 2025年06月01日 1 点赞 0 评论 295 浏览 评分:0.0
连通图(sf14d) 摘要:解题思路:注意事项:真的很无语参考代码:#include<bits/stdc++.h>using namespace std;short father[20005];int n,m,w;i…… 题解列表 2025年06月01日 0 点赞 0 评论 172 浏览 评分:0.0
连通图(sf14e) 摘要:解题思路:在处理边的关系时,边的两个端点的根相同,则这条边冗余注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int …… 题解列表 2025年06月01日 0 点赞 0 评论 186 浏览 评分:0.0
vector字符串(sf12a) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s1; while(cin>…… 题解列表 2025年06月02日 0 点赞 0 评论 168 浏览 评分:0.0
set去重且排序(sf12b) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ set<int>myset; //s…… 题解列表 2025年06月02日 0 点赞 0 评论 194 浏览 评分:0.0
set\vector\map综合应用(sf12c) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int change(int x)//将x转化为字符型,对x的个位十位百…… 题解列表 2025年06月02日 0 点赞 0 评论 177 浏览 评分:0.0