题解 2853: 字符替换 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[…… 题解列表 2023年10月04日 0 点赞 0 评论 226 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#define maxsize 1001typedef struct treenode{ int d…… 题解列表 2023年10月03日 0 点赞 0 评论 264 浏览 评分:0.0
C语言---堆排序 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <stdlib.h> #include <assert.h> typedef int HPDatatyp…… 题解列表 2023年10月03日 0 点赞 0 评论 298 浏览 评分:0.0
刻录光盘(c++) 摘要:## 解题思路 求强联通分量,统计入度为0的即可 ## 参考代码 ```cpp #include using namespace std; const int N = 1e4 + 5;…… 题解列表 2023年10月03日 0 点赞 0 评论 361 浏览 评分:9.9
计算多项式的值(注意了你最后统计结果值的时候要用double类型,用float类型不行,估计是小了,还有pow()函数不能用,估计是精度问题,这种我一直都觉得有点迷迷糊糊的) 摘要:参考代码: ```c #include #include int main() { float x; int n; scanf("%f%d",&x,&n); double s…… 题解列表 2023年10月03日 0 点赞 0 评论 308 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#include <string.h>typedef struct treenode{ c…… 题解列表 2023年10月03日 0 点赞 1 评论 455 浏览 评分:9.9
肿瘤面积(C语言,循环嵌套) 摘要:解题思路:由题意可知,创建一个n行n列的矩阵,找出值为0的元素,肿瘤是一个矩形,故而找出第一个值为0的元素,再在行和列上延伸寻找值为0的元素注意事项:参考代码:#include<stdio.h> v…… 题解列表 2023年10月02日 0 点赞 0 评论 326 浏览 评分:9.9
计算分数加减表达式的值(C语言) 摘要:解题思路:从题目可以看出规律分母为奇数加,偶数则减注意事项:参考代码:#include<stdio.h> double m(int n) { double sum=0; for…… 题解列表 2023年10月02日 0 点赞 0 评论 236 浏览 评分:0.0
编程1013 题解(更适合新手宝宝体质) 摘要:解题思路:sn=前一项+2注意事项:别忘加第一项的2参考代码: #include<stdio.h>int main(){ int n; scanf_s("%d", &n); int …… 题解列表 2023年10月02日 0 点赞 0 评论 207 浏览 评分:9.9
编程1011 题解 摘要:解题思路:输入的ab乘积等于最大公约数乘最小公倍数 即ab=xy注意事项:我的代码里x为最大公约数 y为最小公倍数参考代码:#include<stdio.h>int main(){ int a…… 题解列表 2023年10月02日 0 点赞 0 评论 185 浏览 评分:9.9