题眼,不是简单的排序,而是把数列中元素最大的放在最后最小的放在第一位,其它元素位置不变 摘要:解题思路: 题眼,不是简单的排序,而是把数列中元素最大的放在最后,最小的放在第一位,其它元素位置不变 注意事项:参考代码:#include<stdio.h>int main(){ int arr[…… 题解列表 2023年12月15日 0 点赞 0 评论 183 浏览 评分:9.9
编写题解 1096: Minesweeper--C语言二维数组模拟地雷详解 摘要:`解题思路:` - 使用二维字符数组存储地雷信息,`*`表示有地雷,`.`表示安全。 - 确定了行列数后,声明两个二位数组(分别用于存储地雷信息和地雷数量),且在原来的行列数上增加两行两列,…… 题解列表 2023年12月16日 0 点赞 0 评论 531 浏览 评分:9.9
编写题解 1015: [编程入门]求和训练 摘要:解题思路:yyyyyy注意事项:yyyyyy参考代码:#include<stdio.h>int main(void){ int An = 0, Bn = 0; float Cn = 0; …… 题解列表 2023年12月16日 0 点赞 0 评论 258 浏览 评分:9.9
使用滑动窗口来解决 摘要:解题思路:注意事项:参考代码:n = int(input()) a = input().split() s = [] ans = 0 # 初始化收集的雪花数量 l, r = 0, 0 # …… 题解列表 2023年12月16日 0 点赞 0 评论 251 浏览 评分:9.9
整数奇偶排序(c语言) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int swap(int* a,int* b){ int temp=*a; *a=*b; *b=temp;}i…… 题解列表 2023年12月16日 0 点赞 0 评论 352 浏览 评分:9.9
2772: 苹果和虫子 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double n,x,y; cin>>n>>x…… 题解列表 2023年12月16日 0 点赞 0 评论 192 浏览 评分:9.9
2774: 计算三角形面积 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double x1,y1,x2,y2,x3,y3,a…… 题解列表 2023年12月16日 0 点赞 0 评论 253 浏览 评分:9.9
题解 2922:合影效果(看我看我,易懂) 摘要:```c #include #include #include typedef struct people { char sex[7]; float height; }stu;…… 题解列表 2023年12月16日 0 点赞 0 评论 227 浏览 评分:9.9
编写题解 2997: 梯形面积 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ double e; e=150*2/15*(15…… 题解列表 2023年12月16日 0 点赞 0 评论 642 浏览 评分:9.9
题解 2921: 整数奇偶排序 摘要:```c #include int main() { int arr1[100],arr2[100],arr[100];//arr1存奇数,arr2存偶数 for (int i = …… 题解列表 2023年12月16日 0 点赞 0 评论 368 浏览 评分:9.9