题解列表

筛选

c++自定义函数解法

摘要:解题思路:判断素数,再在主函数中使用循环注意事项:1,2为特殊情况参考代码:#include<iostream> #include<algorithm>using namespace std;bool……

c++字符串简单解法

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<algorithm>using namespace std;int main(){ int n,m; string……

1127: C语言训练-尼科彻斯定理

**思路:**首先找等差数列的规律|第n项|x|x+2|x+4|x+6|...|x+(m-1)*2||----|----|----|----|----|----||前n项和|x|x+x+2|3*x+2+4|4x+2+4+6|...|m*x+m*(m-1)|由等差数列公式:$$n×a1+(n×(n-1)

明明的随机数

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n; scanf("%d",&n); int a[n]; for(int i=0……

Python才是最牛的,其他的就是Shit!

摘要:import math print(math.factorial(int(input())))Python 是一种易学易用且功能强大的高级编程语言,具有许多独特的优点,使其成为开发者和数据科学家们的……