c++解决完数,简单易懂 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int i,j,n,N; cin>>N; for(i=1;i<N;i…… 题解列表 2023年11月28日 0 点赞 0 评论 246 浏览 评分:9.9
c++指针法(指针练习) 摘要:解题思路:初试指针注意事项:参考代码:#include <iostream>using namespace std;int main(){ int arr[9]; int i; for(i=0;i<9…… 题解列表 2023年11月28日 0 点赞 0 评论 284 浏览 评分:0.0
这题简单吧 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d%d",&a,&b); c=a%b; p…… 题解列表 2023年11月28日 0 点赞 0 评论 162 浏览 评分:0.0
题解 1023: [编程入门]选择排序——冒泡排序 摘要:解题思路: 第一步:利用for循环依次输入10个元素。 第二步:利用冒泡排序(for循环与if判断的嵌套)将10个元素正序排序。 第三步:利用for循环依次输出10个元素。注意事项:…… 题解列表 2023年11月28日 0 点赞 0 评论 315 浏览 评分:9.3
c代码记录之只出现一次的首个字符 摘要: #include #include int main(){ char str[100000]; gets(str); …… 题解列表 2023年11月28日 0 点赞 0 评论 182 浏览 评分:0.0
蓝桥杯2023年第十四届省赛真题-更小的数(C语言版) 摘要:解题思路:思路详情见代码注释注意事项:适合看懂题目但无法下手或莫名奇妙报错的人群看参考代码:#include <stdio.h>#include <string.h>#define LEN 10000…… 题解列表 2023年11月28日 0 点赞 0 评论 662 浏览 评分:7.3
输出亲朋字符串 摘要:解题思路:注意事项:chr为解码将将ascii值转为字符ord为编码及将字符转为ascii值参考代码:n = str(input())ls=[]for i in range(len(n)-1): …… 题解列表 2023年11月28日 0 点赞 0 评论 171 浏览 评分:0.0
C语言 if语句的使用 摘要:解题思路:利用根号下b^2-4ac以及x=-b+-根号下b^2-4ac/2a解决问题;不要忘记根的判别式小于0在实数范围无解,但在复数范围存在解;注意事项: 2*a一定要记得加括号,参考代…… 题解列表 2023年11月28日 0 点赞 0 评论 300 浏览 评分:0.0
c代码记录之矩阵相乘 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<stdlib.h> int main(){ int **a,**b,hang_a,lie_a,hang…… 题解列表 2023年11月28日 0 点赞 0 评论 175 浏览 评分:0.0
石头剪子布 摘要:解题思路:注意事项:参考代码:n = int(input())for i in range(n): c = list(map(str,input().split())) if c[0]==…… 题解列表 2023年11月28日 0 点赞 0 评论 546 浏览 评分:9.9