题解列表
字符串中间和后边*号删除(C++简单易懂)
摘要:解题思路:注意事项:参考代码:#include <iostream>#include <string>using namespace std;string fun(string s){ string ……
冶炼金属 20行代码
摘要:解题思路:注意max和min+1就OK注意事项:参考代码:#includeusing namespace std;int main(){ int a,b,x,y,n; cin>>n; int……
Sn的公式求和(c++解决办法)
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; int sn=0; ……
阶乘求和(C++解决办法)
摘要:解题思路:注意事项:第一种:数值溢出的情况,第二:循环递归的思路参考代码:#include<iostream>using namespace std;int main(){ int n; ……
1151: C语言训练-计算一个整数N的阶乘
摘要:###[题目传送门](https://www.dotcpp.com/oj/problem1151.html)
------------
###思路
用一个循环把sum从一乘到n,最后输出……
复数加减法Java写法
摘要:解题思路:注意事项:参考代码:import java.util.*;public class Main { public static void main(String[] args) ……
【编程入门】C语言新手小白求阶乘之和(利用递归进行求解)
摘要:解题思路:1. 理解阶乘定义: 阶乘是所有正整数从1乘到n的乘积,表示为n!。特别地,0!定义为1。2. 编写阶乘函数: 创建一个函数来计算一个给定正整数的阶乘。这个函数可以使用递归或迭代来实……