新手上路(C语言) #include#includetypedefstructinn{intdata;structinn*next;}INN;INN*Push(INN*head)//压入{INN*p;p=(INN*)malloc(sizeof(INN));scanf("%d", 题解列表 2021年12月14日 0 点赞 0 评论 1129 浏览 评分: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 评论 693 浏览 评分:9.0
题目 1177: 三角形-C语言递推解法 摘要:解题思路:递推注意事项:时间限制参考代码:#include<stdio.h> int main() { int tu[105][105]={0}; int zong,n; scanf(…… 题解列表 2021年12月14日 0 点赞 0 评论 1183 浏览 评分: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 评论 669 浏览 评分:0.0
1070: 二级C语言-成绩归类 摘要:#include<bits/stdc++.h> using namespace std; int main(){ vector<int> students; int x;…… 题解列表 2021年12月13日 0 点赞 0 评论 726 浏览 评分:0.0
1069: 二级C语言-寻找矩阵最值 摘要:#include<bits/stdc++.h> using namespace std; int main(){ int n,x; cin >> n; int …… 题解列表 2021年12月13日 0 点赞 0 评论 635 浏览 评分:0.0
1068: 二级C语言-温度转换 摘要:直接循环打印。#include<bits/stdc++.h> using namespace std; int main(){ int C; double F; …… 题解列表 2021年12月13日 0 点赞 0 评论 591 浏览 评分:0.0
1017: [编程入门]完数的判断——不用指针数组。 摘要:解题思路:先判断是否是完数,当是完数时再考虑计算和输出因子。但感觉比较麻烦,不够减简洁。注意事项:参考代码:#include<stdio.h>int isPerfectNumber(int numbe…… 题解列表 2021年12月13日 0 点赞 0 评论 546 浏览 评分:0.0
c语言巧妙解答 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[40]; int i,n; while(~s…… 题解列表 2021年12月13日 0 点赞 0 评论 554 浏览 评分:0.0
C语言-九九乘法表 解题思路:两次for循环,这里用到了另一个知识点C语言中的%2d是printf()函数的输出格式。表示将数字按宽度为2,采用右对齐方式输出,若数据位数不到2位,则左边补空格。相反,负则表示左对齐。注意事项:参考代码:#includeintmain(){inti, 题解列表 2021年12月13日 0 点赞 0 评论 583 浏览 评分:0.0