题解 2829: 数1的个数

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

题解 2829: 数1的个数

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

C题解 2829: 数1的个数

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ long long a,b=0; scanf("%……

2829: 数1的个数

摘要:参考代码:arr = [str(i + 1) for i in range(int(input()))] print(&#39;&#39;.join(arr).count(&#39;1&#39;))……

编写题解 2829: 数1的个数

摘要:解题思路:注意事项:参考代码:n=int(input())times=0for i in range (1,n+1):    times+=str(i).count(&#39;1&#39;)print……

编写题解 2829: 数1的个数

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

题解 2829: 数1的个数

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

2829: 数1的个数

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