题解列表

筛选

2233: 蓝桥杯算法训练-图形显示

摘要:解题思路:注意事项:此题需要两个循环参考代码:#include<iostream>using namespace std;int main(){    int n;    cin>>n;    whi……

2820: 含k个3的数

摘要:解题思路:两个判断,第一个是判断有几个三,第二个是判断是不是19的倍数和判断3的个数是否=k注意事项:要定义两个变量因为有两个if参考代码:#include <bits/stdc++.h>using ……

题解 2820: 含k个3的数

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    long long m,k,sum=0;    ci……

2819: 数字反转

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    long long n,ans = 0;    ci……

题解 2819: 数字反转

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

2818: 分离整数的各个数位

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

利用数学公式求和

摘要:解题思路:由题易知,此题为求解前n项和,但其前n项和不是等比或等差数列,通过观察得知,其中每一项(2,22,222...)均为等比数列前n项和。即:222=2*10^0+2*10^1+2*10^2=2……

3013: 求小数的某一位

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