密码破译的一些个人理解 摘要:解题思路:使用数组来存储输入的密码,然后再加上while循环对每个字符进行加密,最后输出。注意事项:只能加密5位字符型数据;参考代码:#include<stdio.h>int main(){ in…… 题解列表 2022年06月17日 0 点赞 0 评论 357 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-字符统计(Python) 摘要:解题思路:注意事项:参考代码:s = input()a = sorted(list(set(s)))a.sort(reverse=True,key=lambda x:s.count(x))print(…… 题解列表 2022年06月17日 0 点赞 0 评论 638 浏览 评分:5.3
蓝桥杯2018年第九届真题-交换次数 摘要:#### 暴力 ``` #include #include #include #include using namespace std; const int N = 10010; …… 题解列表 2022年06月17日 0 点赞 0 评论 450 浏览 评分:0.0
题解 2657: 蓝桥杯2022年第十三届省赛真题-修剪灌木 摘要:参考代码:#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; for (in…… 题解列表 2022年06月17日 0 点赞 0 评论 770 浏览 评分:9.9
计算2的n次方 摘要:解题思路:只是随手一做,有很多不好的地方,请谅解注意事项:注意时间复杂度参考代码:#include<stdio.h>#include<iostream>using namespace std;int …… 题解列表 2022年06月17日 0 点赞 0 评论 383 浏览 评分:0.0
信息学奥赛一本通T1321-删数问题 摘要:#include<iostream>#include<string>using namespace std;int main(){ string str; cin>>str; int…… 题解列表 2022年06月17日 0 点赞 0 评论 581 浏览 评分:5.8
[编程入门]实数的打印 摘要:思路:暴力解法,直接输出,输出格式不用管,6.2f意为:数字整体长度包括小数点为 6 位,保留 2 位小数,不足则以空格补齐,对齐方式为右对齐。当实际长度大于格式定义的位数时,如 12345678.1…… 题解列表 2022年06月17日 0 点赞 0 评论 383 浏览 评分:0.0
简单便于理解的逻辑——C语言 摘要:解题思路: 申请一个字符数组,之后用gets接收输入的字符; 撰写函数时输入指针会方便很多,然后写一个循环,不必 题解列表 2022年06月17日 0 点赞 0 评论 313 浏览 评分:0.0
编写题解 1018: [编程入门]有规律的数列求和-递归 摘要:解题思路:注意事项:参考代码:n=int(input())f1=1f2=2s=f2/f1for i in range(2,n+1): f1,f2=f2,f1+f2 s=s+f2/f1pri…… 题解列表 2022年06月16日 0 点赞 0 评论 450 浏览 评分:0.0
时间复杂度很低 摘要:解题思路:先转换成从0到y-x,这样固定了从13加15*n的数,然后计数x,求和输出。注意事项:参考代码:#include <stdio.h>#include <stdlib.h>/* run thi…… 题解列表 2022年06月16日 0 点赞 0 评论 380 浏览 评分:9.9