编写题解 1096: Minesweeper--C语言二维数组模拟地雷详解 摘要:`解题思路:` - 使用二维字符数组存储地雷信息,`*`表示有地雷,`.`表示安全。 - 确定了行列数后,声明两个二位数组(分别用于存储地雷信息和地雷数量),且在原来的行列数上增加两行两列,…… 题解列表 2023年12月16日 0 点赞 0 评论 687 浏览 评分:9.9
编写题解 1015: [编程入门]求和训练 摘要:解题思路:yyyyyy注意事项:yyyyyy参考代码:#include<stdio.h>int main(void){ int An = 0, Bn = 0; float Cn = 0; …… 题解列表 2023年12月16日 0 点赞 0 评论 432 浏览 评分:9.9
使用滑动窗口来解决 摘要:解题思路:注意事项:参考代码:n = int(input()) a = input().split() s = [] ans = 0 # 初始化收集的雪花数量 l, r = 0, 0 # …… 题解列表 2023年12月16日 0 点赞 0 评论 426 浏览 评分: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 评论 523 浏览 评分:9.9
2772: 苹果和虫子 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double n,x,y; cin>>n>>x…… 题解列表 2023年12月16日 0 点赞 0 评论 300 浏览 评分: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 评论 373 浏览 评分:9.9
题解 2922:合影效果(看我看我,易懂) 摘要:```c #include #include #include typedef struct people { char sex[7]; float height; }stu;…… 题解列表 2023年12月16日 0 点赞 0 评论 368 浏览 评分:9.9
编写题解 2997: 梯形面积 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ double e; e=150*2/15*(15…… 题解列表 2023年12月16日 0 点赞 0 评论 819 浏览 评分:9.9
题解 2921: 整数奇偶排序 摘要:```c #include int main() { int arr1[100],arr2[100],arr[100];//arr1存奇数,arr2存偶数 for (int i = …… 题解列表 2023年12月16日 0 点赞 0 评论 506 浏览 评分:9.9
2759: 打印字符 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; cin>>a; cout<<(char)a;…… 题解列表 2023年12月16日 0 点赞 0 评论 353 浏览 评分:9.9