优质题解 谁拿了最多奖学金(C++代码解析和题解) 摘要: 代码解析: 首先,定义了一个 Student 结构体,用来存储学生的相关信息,包括姓名、平均成绩、测评成绩、是否担任干部、是否来自西部地区…… 题解列表 2023年07月17日 0 点赞 0 评论 911 浏览 评分:9.9
优质题解 统计数字字符个数(C++代码解析和题解) 摘要:代码解析:首先,定义了一个函数 count_digits,它的输入参数是一个字符串 str,表示要统计的字符串。函数返回字符串中数字字符的个数。在函数内部,初始化一个计数变量 count 为0。然后,…… 题解列表 2023年07月17日 1 点赞 0 评论 1792 浏览 评分:6.3
优质题解 找第一个只出现一次的字符(C++代码解析和题解) 摘要:代码解析:使用了哈希表 unordered_map 来统计每个字符的出现次数。首先,定义了一个函数 findFirstUniqueChar,它的输入参数是一个字符串 s,表示要查找的字符串。函数返回第…… 题解列表 2023年07月17日 2 点赞 6 评论 1963 浏览 评分:7.5
优质题解 C语言训练-"水仙花数"问题(c++代码) 摘要:首先我们要引出一个解题方法——**穷举法(又称枚举)**,即用循环表示出所有可能性再根据题目要求使用*if* 语句筛选出符合条件的结果。 让我们先读题: > 所谓"水仙花数"是指这样的一个三位…… 题解列表 2023年07月17日 2 点赞 3 评论 1299 浏览 评分:9.5
1034: [编程入门]自定义函数之数字分离-简单方法 摘要:解题思路:注意事项:注意使用-%2d(左对齐并间隔两格) 参考代码:#include<stdio.h>#include<math.h>int fun(int a){ int t = 0; for (…… 题解列表 2023年07月16日 0 点赞 0 评论 347 浏览 评分:0.0
基因相关性(C++)简单实用 摘要:参考代码:#include <iostream>#include <string>using namespace std;string compareDNA(const string& dna1, c…… 题解列表 2023年07月16日 0 点赞 0 评论 554 浏览 评分:9.9
密码翻译(C++)简单实用 摘要:参考代码:#include <iostream>#include <string>using namespace std;string encrypt(const string& str) { …… 题解列表 2023年07月16日 0 点赞 0 评论 521 浏览 评分:9.9
整理药名(C++)简单实用 摘要:代码解析:参考代码:#include <iostream>#include <string>#include <cctype>using namespace std;string formatMedi…… 题解列表 2023年07月16日 0 点赞 0 评论 777 浏览 评分:6.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,a[100][100]; scanf("%d", &n); for (i …… 题解列表 2023年07月16日 0 点赞 0 评论 521 浏览 评分:0.0
不高兴的津津 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int day=0,maxx=0; f…… 题解列表 2023年07月16日 0 点赞 0 评论 340 浏览 评分:0.0