2829: 数1的个数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n,sum = 0; ci…… 题解列表 2024年01月19日 0 点赞 0 评论 146 浏览 评分:0.0
(c语言)详细解读 摘要:解题思路:注意事项: 参考代码:#include"stdio.h"int main(){ int num=0,n=0,Num=0; scanf("%d",&num); for(;nu…… 题解列表 2023年01月03日 0 点赞 0 评论 325 浏览 评分:0.0
while循环又来咯,这个还是除余思想 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,k=0; //k,1的个数 scanf("%d",&n); for(int …… 题解列表 2023年01月19日 0 点赞 0 评论 251 浏览 评分:0.0
2829: 数1的个数 摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) {Scanner sc = new Scann…… 题解列表 2023年04月25日 0 点赞 0 评论 288 浏览 评分:0.0
数一的个数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,sum=0; cin>>n; …… 题解列表 2023年07月14日 0 点赞 0 评论 134 浏览 评分:3.0
数1的个数,题目短吗 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n,c,y,x,h; int count=0,b=0; scanf("%d",&n…… 题解列表 2024年01月14日 0 点赞 0 评论 274 浏览 评分:6.0
题解 2829: 数1的个数 摘要:解题思路:额……自己理解,学了循环的应该都会吧,我不解释了\^w^/。注意事项:别抄我的,抄我的人我诅咒他电脑10秒关机参考代码:#include<bits/stdc++.h>#include<win…… 题解列表 2024年02月24日 0 点赞 0 评论 298 浏览 评分:6.0
数1的个数(C++代码) 摘要:参考代码:#include<iostream>using namespace std;int countOnes(int n) { int count = 0; for (int i = …… 题解列表 2023年07月12日 0 点赞 0 评论 292 浏览 评分:8.0
编写题解 2829: 数1的个数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int n,x,i,count=0,t; scanf("%d",&n); fo…… 题解列表 2023年01月01日 0 点赞 1 评论 572 浏览 评分:8.4
感谢支持,谢谢你们的支持 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int n, i, k = 0, …… 题解列表 2023年07月14日 0 点赞 0 评论 305 浏览 评分:9.9