第一个HelloWorld程序 摘要:解题思路:这题没什么好说的注意事项:输出时记得换行,输出时记得换行“ ”。参考代码:#include<bits/stdc++.h>using namespace std; int main(){ …… 题解列表 2022年05月04日 0 点赞 0 评论 642 浏览 评分:8.7
Tetrahedrons and Spheres 摘要:#include <cstdio> #include <cstring> #include <cstdlib> #include <cmath> #include <algorithm> #…… 题解列表 2022年05月08日 0 点赞 2 评论 741 浏览 评分:8.7
python——汽水瓶 摘要:def aa(a): sum = 0 while a > 1: s = a%3   题解列表 2022年05月23日 0 点赞 1 评论 662 浏览 评分:8.7
蓝桥杯算法提高VIP-递归倒置字符数组(C++) 摘要:下面是我(一个小白)的代码,思路简单,欢迎采纳 ```cpp #include #include//调用string的头文件 using namespace std; string zm; …… 题解列表 2022年06月19日 0 点赞 0 评论 1204 浏览 评分:8.7
1028: [编程入门]自定义函数求一元二次方程(不用自定义函数,只用if) 摘要:解题思路:一个一个判断!!!注意事项:1.是空格! 2.保留3位。 3.要输出i!参考代码:#include<bits/stdc++.h> using namespace std; int m…… 题解列表 2022年07月11日 0 点赞 10 评论 307 浏览 评分:8.7
1017: [编程入门]完数的判断(python代码) 摘要:解题思路: 1.输入N 2.用for循环,找出所有因子,并判断此数是否为完美数 3.输出N以内的完美数的所有因子注意事项: 每打印完一个完美数,需换行参考代码:N=int(input()) …… 题解列表 2022年07月20日 0 点赞 2 评论 931 浏览 评分:8.7
投机取巧一下 摘要:解题思路:。。。。。。。。。。。。。。。注意事项:。。。。。。。。。参考代码:print(1993)…… 题解列表 2022年07月28日 0 点赞 0 评论 514 浏览 评分:8.7
c语言迭代法求平方根 摘要:解题思路:迭代算法的基本思想是: 为求一个问题的解x,可由给定的一个初值x0,根据某一迭代公式得到一个新的值x1,这个新值x1比初值x0 更接近要求的值x;再以新值作为初值,即:x1→x0,重新按原来…… 题解列表 2022年08月10日 0 点赞 3 评论 831 浏览 评分:8.7
有注释,思路简单 摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split())) 输入的列表 b=[] 绝对值列表 &nb 题解列表 2022年08月11日 0 点赞 0 评论 579 浏览 评分:8.7
一道简单的数学题(非常短且绝对能听懂) 摘要:解题思路:对于每一对恰好前后颠倒的排列(比如1 3 2 4与4 2 3 1),其价值和为n*(n-1)/2,可以自己尝试一下,会发现很好证明。一共有n!个排列,也就是n!/2对排列,所以答案就是n*(…… 题解列表 2022年08月24日 1 点赞 1 评论 1178 浏览 评分:8.7