求1+2!+3!+...+N!的和 摘要:解题思路:先求每个数的阶乘再相加注意事项:注意用long类型参考代码:public static void main(String[] args) { Scanner sc = new Scanner…… 题解列表 2022年01月22日 0 点赞 0 评论 441 浏览 评分:0.0
简单字符串的不简单解法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int main(){ int N; string s; cin>>N; getl…… 题解列表 2022年01月22日 0 点赞 0 评论 349 浏览 评分:0.0
蓝桥杯算法提高VIP-邮票面值设计(java代码) 摘要:解题思路: 深度优先遍历就可以,可以把一个设计完的邮票面值组合看作在长度减一的邮票组合的基础上再加上一个邮票面值。最后再依次对设计完的邮票面值组合进行计算其所能连续达到的最大邮资就可以。…… 题解列表 2022年01月22日 0 点赞 0 评论 534 浏览 评分:0.0
分糖果 python 考验copy的使用 摘要:解题思路:注意事项:参考代码:import copyn=int(input())v=list(map(int,input().split()))num=0def check(v): flag=1 …… 题解列表 2022年01月22日 0 点赞 0 评论 438 浏览 评分:0.0
[编程入门]最大公约数与最小公倍数 摘要:```python def gcd(a, b): return a if b == 0 else gcd(b,a%b) a,b = map(int,input().split()) …… 题解列表 2022年01月22日 0 点赞 0 评论 434 浏览 评分:0.0
[编程入门]求和训练 摘要:```python a,b,c = map(int,input().split()) seq_a = [i for i in range(1,a+1)] seq_b = [i**2 for …… 题解列表 2022年01月22日 0 点赞 0 评论 386 浏览 评分:0.0
A+B from beiqiao(C++) 摘要:#include<iostream> using namespace std; int main() { int a,b; while(cin>>a>>b) //编译器…… 题解列表 2022年01月23日 0 点赞 0 评论 308 浏览 评分:0.0
A+B for Input-Output Practice (II) from beiqiao (C++) 摘要:for循环:#include<iostream> using namespace std; int main() { int a,b; int c; cin>>c;…… 题解列表 2022年01月23日 0 点赞 0 评论 327 浏览 评分:0.0
A+B for Input-Output Practice (III) from beiqiao (C++) 摘要:#include<iostream> using namespace std; int main() { int a,b; while((cin>>a>>b)&&!(a==0&…… 题解列表 2022年01月23日 0 点赞 0 评论 340 浏览 评分:0.0
python-质因数2 摘要:解题思路:注意事项:注意输入为质数时直接输出参考代码:from math import sqrt def Isprime(x): for i in range(…… 题解列表 2022年01月23日 0 点赞 0 评论 575 浏览 评分:0.0