自定义函数之字符串连接 摘要:解题思路:可以直接使用strcat函数来实现连接功能注意事项:注意gets函数要使用两次参考代码:#include<stdio.h>#include<string.h>int main(){ c…… 题解列表 2023年06月10日 0 点赞 0 评论 551 浏览 评分:9.9
二级C语言-平均值计算 摘要:参考代码:#include <bits/stdc++.h>using namespace std;int main(int argc, char** argv) { int a,b,c,d,e,…… 题解列表 2023年06月11日 0 点赞 0 评论 687 浏览 评分:9.9
信息学奥赛一本通T1181-整数奇偶排序 摘要:解题思路:通过设置3个数组,用for循环分别录入,计算相应奇偶数数量,输出。使用冒泡法进行排序。注意事项:参考代码:#include <stdio.h>int main(){ int a[10]…… 题解列表 2023年06月12日 0 点赞 2 评论 546 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:1. 使用哈希表:可以使用哈希表来存储数组元素及其对应的索引,以减少查找的时间复杂度。在内层循环中,可以通过查询哈希表来找到与当前元素配对的另一个元素,而不需要遍历整个数组。2.排序数组:如…… 题解列表 2023年06月13日 0 点赞 0 评论 526 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,num; float consume = 0; scanf("%d", &n); …… 题解列表 2023年06月13日 0 点赞 0 评论 584 浏览 评分:9.9
图·一乐 摘要:解题思路:注意事项:纯属享受sort的便利参考代码:#include<iostream>#include<algorithm>using namespace std;int main(){ in…… 题解列表 2023年06月15日 0 点赞 0 评论 528 浏览 评分:9.9
更适合c++的奇偶排序 摘要:解题思路:两个数组,一个存储,一个变化注意事项:参考代码:#include <iostream>#include <algorithm>using namespace std;int main() {…… 题解列表 2023年06月15日 0 点赞 0 评论 525 浏览 评分:9.9
图一·乐5 摘要:解题思路:注意事项:参考代码:#include#includeusing namespace std;int main(){ int n; cin >> n; int arr[100…… 题解列表 2023年06月15日 0 点赞 0 评论 530 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>struct people{ char sex[7]; …… 题解列表 2023年06月16日 0 点赞 0 评论 469 浏览 评分:9.9
1329: 合并傻子 摘要:```cpp #include #include int max(int a,int b) { return a>b?a:b; } int min(int a,int b) {…… 题解列表 2023年06月17日 0 点赞 0 评论 738 浏览 评分:9.9