题解列表
[编程入门]阶乘求和
摘要:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long n,Sn=1,a=1; cin>>n; f……
2832: 第n小的质数
摘要:解题思路:注意事项:参考代码:def isPrime(su): if su==2: return true if su%2==0: return False ……
二级C语言-平均值计算
摘要:参考代码:#include <bits/stdc++.h>using namespace std;int main(int argc, char** argv) { int a,b,c,d,e,……
编写题解 2824: 求出e的值
摘要:解题思路:注意事项:参考代码:n=int(input())a=1b=1for i in range(1,n+1): a=a*i c=1/a b=b+c e=b print(f'{e:……
优质题解
找到简单规律,一切迎刃而解,--混乱的数组-python题解
摘要:解题思路:借鉴了大佬的思想,在此表示崇敬和感谢。https://blog.dotcpp.com/a/95964 站在大佬的肩膀上,进一步发现了更容易编程的规律:每个x对应的数组由三个序列构成。整体思想……
自定义函数之字符串连接
摘要:解题思路:可以直接使用strcat函数来实现连接功能注意事项:注意gets函数要使用两次参考代码:#include<stdio.h>#include<string.h>int main(){ c……