二级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 评论 773 浏览 评分:9.9
信息学奥赛一本通T1181-整数奇偶排序 摘要:解题思路:通过设置3个数组,用for循环分别录入,计算相应奇偶数数量,输出。使用冒泡法进行排序。注意事项:参考代码:#include <stdio.h>int main(){ int a[10]…… 题解列表 2023年06月12日 0 点赞 2 评论 627 浏览 评分:9.9
c语言代码解决问题 解题思路:1.使用哈希表:可以使用哈希表来存储数组元素及其对应的索引,以减少查找的时间复杂度。在内层循环中,可以通过查询哈希表来找到与当前元素配对的另一个元素,而不需要遍历整个数组。2.排序数组:如果数组是有序的,可以使用双指针法来查找配对元素。 题解列表 2023年06月13日 0 点赞 0 评论 638 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,num; float consume = 0; scanf("%d", &n); …… 题解列表 2023年06月13日 0 点赞 0 评论 674 浏览 评分:9.9
图·一乐 摘要:解题思路:注意事项:纯属享受sort的便利参考代码:#include<iostream>#include<algorithm>using namespace std;int main(){ in…… 题解列表 2023年06月15日 0 点赞 0 评论 631 浏览 评分:9.9
更适合c++的奇偶排序 摘要:解题思路:两个数组,一个存储,一个变化注意事项:参考代码:#include <iostream>#include <algorithm>using namespace std;int main() {…… 题解列表 2023年06月15日 0 点赞 0 评论 616 浏览 评分:9.9
图一·乐5 摘要:解题思路:注意事项:参考代码:#include#includeusing namespace std;int main(){ int n; cin >> n; int arr[100…… 题解列表 2023年06月15日 0 点赞 0 评论 618 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>struct people{ char sex[7]; …… 题解列表 2023年06月16日 0 点赞 0 评论 555 浏览 评分: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 评论 840 浏览 评分:9.9
1331: 新三国争霸 ```cpp#include#includeusingnamespacestd;intn,m,t,v,k,x,y,p,k1,k2,fa[301],f[51],d[51][51];boolb[51][301][301];structnode{intx, 题解列表 2023年06月17日 0 点赞 0 评论 1145 浏览 评分:9.9