题解 2829: 数1的个数

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

筛选

题解 2829: 数1的个数

摘要:解题思路:可以用while拆解个各位,比较通用,但是本题说明了是10000以内的数,就用了简单拆分注意事项:注意逻辑或||造成的短路问题,使用||时只要有一个条件满足就会count++,但是这个数会不……

编写题解 2829: 数1的个数

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

数1的个数,题目短吗

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

题解 2829: 数1的个数

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

(c语言)详细解读

摘要:解题思路:注意事项: 参考代码:#include"stdio.h"int main(){    int num=0,n=0,Num=0;    scanf("%d",&num);    for(;nu……

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