编写题解 1017: [编程入门]完数的判断(C语言版) 摘要:解题思路:利用数组以及循环注意事项:要注意效率参考代码:#include<stdio.h>#define N 100int main(){ int n, i, j, sum, a[N], k; …… 题解列表 2021年12月14日 0 点赞 0 评论 283 浏览 评分:9.9
编写题解 1484: 蓝桥杯算法提高VIP-Quadratic Equation 摘要:解题思路:注意事项:参考代码:import matha,b,c = map(float,input().split())x1=math.sqrt((-c/a)+(b/(a*2))**2)-b/(a*2…… 题解列表 2021年12月14日 0 点赞 0 评论 225 浏览 评分:0.0
有序数组插入新数据的处理-C语言 摘要:解题思路:1.一个有序数组中随机插入一个数字并能按升序输出新数组;2.那就要建立一个数组,长度为10(因为增加一个元素后数组长度+1,从原来的9变成10),先用for循环输入前9个数据(也可以用get…… 题解列表 2021年12月14日 0 点赞 0 评论 427 浏览 评分:0.0
C语言绝对值排序:冒泡排序+绝对值+时间超限的解决方法 摘要:解题思路:开两个数组,然后读一个数组的时候将它的绝对值给另一个数组,然后冒泡排序存绝对值的数组的时候同时对原来的数组进行排序注意事项:时间如果超限就要加个!=EOF参考代码:#include<stdi…… 题解列表 2021年12月14日 0 点赞 0 评论 1136 浏览 评分:6.0
新手上路(C语言) 摘要: #include #include typedef struct inn { int data; struct inn *ne…… 题解列表 2021年12月14日 0 点赞 0 评论 598 浏览 评分:9.3
编写题解 1152: C语言训练-计算:t=1-1/(2*2)-1/(3*3)-...-1/(m*m) 摘要:解题思路:注意事项:参考代码:n = int(input())t = 1for i in range(2,n+1): t -= 1/(i*i)print('%.6f'%t)…… 题解列表 2021年12月14日 0 点赞 0 评论 344 浏览 评分:9.0
题目 1177: 三角形-C语言递推解法 摘要:解题思路:递推注意事项:时间限制参考代码:#include<stdio.h> int main() { int tu[105][105]={0}; int zong,n; scanf(…… 题解列表 2021年12月14日 0 点赞 0 评论 646 浏览 评分:9.9
1065: 二级C语言-最小绝对值 摘要:#include<bits/stdc++.h> using namespace std; int main(){ vector<int> a(10,0),b(10,0); …… 题解列表 2021年12月13日 0 点赞 0 评论 206 浏览 评分:0.0
1070: 二级C语言-成绩归类 摘要:#include<bits/stdc++.h> using namespace std; int main(){ vector<int> students; int x;…… 题解列表 2021年12月13日 0 点赞 0 评论 340 浏览 评分:0.0
1069: 二级C语言-寻找矩阵最值 摘要:#include<bits/stdc++.h> using namespace std; int main(){ int n,x; cin >> n; int …… 题解列表 2021年12月13日 0 点赞 0 评论 240 浏览 评分:0.0