C语言绝对值排序:冒泡排序+绝对值+时间超限的解决方法 摘要:解题思路:开两个数组,然后读一个数组的时候将它的绝对值给另一个数组,然后冒泡排序存绝对值的数组的时候同时对原来的数组进行排序注意事项:时间如果超限就要加个!=EOF参考代码:#include<stdi…… 题解列表 2021年12月14日 0 点赞 0 评论 1381 浏览 评分:6.0
新手上路(C语言) 摘要: #include #include typedef struct inn { int data; struct inn *ne…… 题解列表 2021年12月14日 0 点赞 0 评论 845 浏览 评分: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 评论 478 浏览 评分:9.0
题目 1177: 三角形-C语言递推解法 摘要:解题思路:递推注意事项:时间限制参考代码:#include<stdio.h> int main() { int tu[105][105]={0}; int zong,n; scanf(…… 题解列表 2021年12月14日 0 点赞 0 评论 904 浏览 评分: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 评论 338 浏览 评分:0.0
1070: 二级C语言-成绩归类 摘要:#include<bits/stdc++.h> using namespace std; int main(){ vector<int> students; int x;…… 题解列表 2021年12月13日 0 点赞 0 评论 449 浏览 评分:0.0
1069: 二级C语言-寻找矩阵最值 摘要:#include<bits/stdc++.h> using namespace std; int main(){ int n,x; cin >> n; int …… 题解列表 2021年12月13日 0 点赞 0 评论 347 浏览 评分:0.0
1068: 二级C语言-温度转换 摘要:直接循环打印。#include<bits/stdc++.h> using namespace std; int main(){ int C; double F; …… 题解列表 2021年12月13日 0 点赞 0 评论 392 浏览 评分:0.0
1017: [编程入门]完数的判断——不用指针数组。 摘要:解题思路:先判断是否是完数,当是完数时再考虑计算和输出因子。但感觉比较麻烦,不够减简洁。注意事项:参考代码:#include<stdio.h>int isPerfectNumber(int numbe…… 题解列表 2021年12月13日 0 点赞 0 评论 359 浏览 评分:0.0
c语言巧妙解答 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[40]; int i,n; while(~s…… 题解列表 2021年12月13日 0 点赞 0 评论 368 浏览 评分:0.0