全部遍历后再输出-1 摘要:解题思路:注意cout出-1的位置,如果是在if下面,即意味着单次判断无x即直接-1,而实际上应该是全部遍历后再判断。注意事项:参考代码:#include<iostream> using names…… 题解列表 2024年12月10日 0 点赞 0 评论 161 浏览 评分:0.0
求最值索引,定指标max/j,在循环中不断替换 摘要:解题思路:求最值索引,定指标max/j,在循环中不断替换。输出记得索引+1。注意事项:参考代码:#include<iostream> using namespace std; int main()…… 题解列表 2024年12月10日 2 点赞 0 评论 251 浏览 评分:0.0
【链表入门】关于链表节点的删除,有点复杂哦~(C语言) 摘要:解题思路:对于新手来说,可能有点复杂( 比如我(●'_'●))但简单概括一下就是将链表1的节点与链表2的节点逐一进行比较,如果符合条件(学号A=学号B)就修改指针,进行删除操作。具体流…… 题解列表 2024年12月10日 1 点赞 2 评论 1060 浏览 评分:9.9
与7无关的数(清晰明了) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n,t,sum=0; scanf("%d",&n); for(i=1;i<=n;i…… 题解列表 2024年12月10日 1 点赞 0 评论 318 浏览 评分:0.0
药房管理(清晰明了) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,i,n,a,sum=0,N=0; scanf("%d",&m); scanf("%…… 题解列表 2024年12月10日 0 点赞 0 评论 174 浏览 评分:0.0
2879: 错误探测 摘要:解题思路:注意事项:参考代码: #include<stdio.h> int main() { int i, j, n; //n为数组的阶数,i为行,j为列; int row…… 题解列表 2024年12月10日 1 点赞 0 评论 252 浏览 评分:0.0
太Tm强了吧啊深V合格好大个很大干哈 摘要:解题思路:这段代码是一个简单的C++程序,用于从标准输入读取三个整数,并按照指定格式输出。下面是对代码的逐行分析:#include<iostream> 和 #include <iomanip>: 这…… 题解列表 2024年12月09日 0 点赞 0 评论 469 浏览 评分:0.0
C语言之自由下落的距离计算建模是精髓 摘要:#include <stdio.h> #include <stdlib.h> #include <string.h> int main() { int m,n; float…… 题解列表 2024年12月09日 2 点赞 0 评论 665 浏览 评分:10.0
哥德巴赫曾猜测 单循环 搞定 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; bool f(int x){ // 如果x小于等于1,则不是素数(…… 题解列表 2024年12月09日 0 点赞 0 评论 243 浏览 评分:0.0
最简单易懂的解法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,m[200]; float t[200]; char c[100][100]; …… 题解列表 2024年12月09日 0 点赞 0 评论 199 浏览 评分:0.0