数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 评论 295 浏览 评分:6.0
<c语言>while输出的纠正#输出时机的选择 摘要:解题思路:输入存储N,判断N以内的完数(题目要求是除本身外的因子之和等于本身),判断符合的数,输出该数并储存输出该数的因子。有意思的就是用数组来存储因子,原本我的构思都是写两个函数再加指针来写,后来我…… 题解列表 2024年01月14日 0 点赞 0 评论 123 浏览 评分:9.9
题解 1147: C语言训练-角谷猜想 摘要:解题思路:没什么难想的。注意事项:在写判断奇数时要再写个不等于1,不然会无限重复。参考代码:#include <bits/stdc++.h>using namespace std;int main()…… 题解列表 2024年01月15日 0 点赞 0 评论 184 浏览 评分:9.9
没有比我更直观的了吧 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>struct stu{ char num[100]; char name[100];…… 题解列表 2024年01月15日 0 点赞 0 评论 182 浏览 评分:0.0
题解 1011: [编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long m,n; cin>>m>>…… 题解列表 2024年01月15日 0 点赞 0 评论 155 浏览 评分:0.0
[编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ long long m,n,r=0,p=0; cin>>…… 题解列表 2024年01月15日 0 点赞 0 评论 165 浏览 评分:0.0
1011: [编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a, b, c = 1,d = 0; c…… 题解列表 2024年01月15日 0 点赞 0 评论 191 浏览 评分:0.0
题解 1147: C语言训练-角谷猜想 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ long long m; cin>>m; whil…… 题解列表 2024年01月15日 0 点赞 0 评论 129 浏览 评分:0.0
题解 1147: C语言训练-角谷猜想 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n; cin>>n; …… 题解列表 2024年01月15日 0 点赞 0 评论 198 浏览 评分:9.9
1147: C语言训练-角谷猜想 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long aj; cin>>aj; …… 题解列表 2024年01月15日 0 点赞 0 评论 152 浏览 评分:6.0