题解 2829: 数1的个数

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

筛选

题解 2829: 数1的个数

摘要:解题思路:额……自己理解,学了循环的应该都会吧,我不解释了\^w^/。注意事项:别抄我的,抄我的人我诅咒他电脑10秒关机参考代码:#include<bits/stdc++.h>#include<win……

数1的个数,题目短吗

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int i,n,c,y,x,h;    int count=0,b=0;    scanf("%d",&n……

数一的个数

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

2829: 数1的个数

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

C题解 2829: 数1的个数

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

编写题解 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>……