完数的判断(C++) 摘要:解题思路:双重for循环注意事项:sum每循环一轮重新归零注意变量的适用范围以上为本人敲代码时发生的错误,共勉!参考代码:#include<iostream>using namespace std;i…… 题解列表 2024年11月28日 4 点赞 0 评论 495 浏览 评分:0.0
陶陶摘苹果(新手也能看懂) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int count=0; int arr[10]; for(int i=0;i<10;i++) { scan…… 题解列表 2024年11月28日 1 点赞 0 评论 369 浏览 评分:0.0
最小新整数贪心c++ 摘要://贪心:每次遍历使高位的数越小越划算 ```cpp #include using namespace std; int main(){ int a,n,c; str…… 题解列表 2024年11月28日 1 点赞 0 评论 156 浏览 评分:0.0
迭代法求平方根 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ float a; scanf("%f",&a); float b; b=sq…… 题解列表 2024年11月28日 0 点赞 0 评论 434 浏览 评分:0.0
a+b so easy [竞赛入门]简单的a+b 摘要:```cpp #include using namespace std; int main(){ int a,b; while(cin>>a>>b)cout…… 题解列表 2024年11月28日 6 点赞 0 评论 1011 浏览 评分:6.0
信息学奥赛一本通T1178-成绩排序 结构体 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义结构体s,包含一个字符串k和一个整数j struct s{ …… 题解列表 2024年11月28日 0 点赞 0 评论 227 浏览 评分:0.0
清晰明了,用long long int解决阶乘数过大的问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long long int n,i,sum=0,t=1; scanf("%lld",&n); …… 题解列表 2024年11月28日 4 点赞 0 评论 1146 浏览 评分:0.0
编写题解 2857: 加密的病历单 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[828]; int i,len;gets(a); …… 题解列表 2024年11月28日 1 点赞 0 评论 261 浏览 评分:0.0
普普通通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int x,n; scanf("%d%d",&x,&n); printf("%0…… 题解列表 2024年11月27日 0 点赞 0 评论 197 浏览 评分:0.0
普普通通的解题方法1124 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include"ctype.h"#include <string.h>int main(){ char a[66] = {…… 题解列表 2024年11月27日 0 点赞 0 评论 314 浏览 评分:0.0