题解列表

筛选

一个for循环阶乘求和

摘要:解题思路:用a1表示阶乘的结果,再相加即可注意事项:a1和Sn的数据类型是long long int 参考代码:#include<bits/stdc++.h>using namespace std;i……

1953: 三位数分解

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){    int a,b,c,d;    cin>>d;    a=d/……

2763: 计算(a+b)/c的值

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

1267: A+B Problem

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

Yu:2816统计满足条件的4位数个数

摘要:#### 解题思路: 在会如何得到每一位数的情况下再思考此题。 如何得到每一位数的模板如下: ```c++ while(n){ // 当n变为0时循环结束 cout > ……