题解列表

筛选

求1+2!+3!+...+N!的和

摘要:解题思路:先求每个数的阶乘再相加注意事项:注意用long类型参考代码:public static void main(String[] args) { Scanner sc = new Scanner……

简单字符串的不简单解法

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int main(){ int N; string s; cin>>N; getl……

蓝桥杯算法提高VIP-邮票面值设计(java代码)

摘要:解题思路:        深度优先遍历就可以,可以把一个设计完的邮票面值组合看作在长度减一的邮票组合的基础上再加上一个邮票面值。最后再依次对设计完的邮票面值组合进行计算其所能连续达到的最大邮资就可以。……

[编程入门]求和训练

摘要:```python a,b,c = map(int,input().split()) seq_a = [i for i in range(1,a+1)] seq_b = [i**2 for ……

A+B from beiqiao(C++)

摘要:#include<iostream> using namespace std; int main() {     int a,b;     while(cin>>a>>b)    //编译器……

python-质因数2

摘要:解题思路:注意事项:注意输入为质数时直接输出参考代码:from math import sqrt          def Isprime(x):         for i in range(……