利用·C++编写有规律的数列求和 摘要:解题思路:注意事项:参考代码:#include<iostream>int main(void){ int range; int fenzi=2,fenmu=1; double result=0; s…… 题解列表 2023年12月02日 0 点赞 0 评论 153 浏览 评分:0.0
利用C++完成自由下落的距离计算 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h>using namespace std;int main(void){ int totalHeight…… 题解列表 2023年12月02日 0 点赞 0 评论 208 浏览 评分:0.0
求1~a之和+1~b平方和+1~c倒数之和 摘要:解题思路:求1~a之和:A0 = 0; A1 = A0 + 1 A2 = A1 + 2 A3 = …… 题解列表 2023年12月02日 0 点赞 0 评论 148 浏览 评分:0.0
我看了很多题解,就是感觉为啥他们都写得那么复杂 摘要:解题思路:注意事项:直接定义int可能不够用·参考代码:#include<stdio.h>int main(){ long n,sum=0; while (scanf("%ld", &n) !=EOF…… 题解列表 2023年12月02日 0 点赞 0 评论 266 浏览 评分:0.0
编写题解 1017: [编程入门]完数的判断 摘要:解题思路:注意事项:参考代码:def get_factorial(number): son = [1] for i in range(2, int(number ** 0.5) +…… 题解列表 2023年12月02日 0 点赞 0 评论 182 浏览 评分:0.0
练练用vector容器解题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#include<vector>using namespace std;const int N=10010;int n,su…… 题解列表 2023年12月02日 0 点赞 0 评论 109 浏览 评分:0.0
编写题解 1066: 二级C语言-自定义函数 摘要:解题思路:注意事项: 题目中并未明确表示两个参数是一行输入还是两行输出,看输入例子是一行输入,但实际是随机的,所以不管你是分一行输入还是两行输入都会错一半,解决方法是判断一下第一行所输入参数的长度。参…… 题解列表 2023年12月03日 0 点赞 0 评论 162 浏览 评分:0.0
编写题解 1067: 二级C语言-分段函数 摘要:解题思路:注意事项:参考代码:import math def f(x): if x < 0: return abs(x) elif 0 <= x < 2…… 题解列表 2023年12月03日 0 点赞 0 评论 174 浏览 评分:0.0
C语言训练-求矩阵的两对角线上的元素之和 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int N; cin>>N; int a[N][N]…… 题解列表 2023年12月03日 0 点赞 0 评论 170 浏览 评分:0.0
printf基础练习--java语言 摘要:解题思路:注意事项:八进制、十六进制输出表示的符号参考代码:import java.util.Scanner; public class Main { public static void …… 题解列表 2023年12月03日 0 点赞 0 评论 531 浏览 评分:0.0