题解 2913: 整数去重 菜鸟解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,n; scanf("%d",&n); int a[n]; for(i=0…… 题解列表 2024年11月22日 2 点赞 0 评论 576 浏览 评分:10.0
定义一个长度为10的数组存放尾数0到9的最大长度来解决问题 摘要:解题思路:由于每个数只要头和尾,而其中尾只能是0到9,即使当尾为0时不能继续接,也要用10个参数来储存尾巴为0到9的最大长度即可。p[10]的1到9对应当前尾巴为1到9的长度最长的值,所以每拿到一个新…… 题解列表 2024年11月22日 8 点赞 0 评论 1162 浏览 评分:10.0
3 5 7整除(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d", &a); if((a%3==0) && (a%5==0) && (a%7=…… 题解列表 2024年11月22日 1 点赞 0 评论 602 浏览 评分:10.0
2002题解方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[100]; int i,t=0; gets(a); for(i=0;a[i]!='\0&#…… 题解列表 2024年11月22日 0 点赞 0 评论 402 浏览 评分:10.0
Hanoi双塔问题——递归+高精度运算 摘要:解题思路:单塔:2n-1双塔:2*(2n-1)高精度乘低精度高精度的减法删除多余的前导零注意事项:参考代码:…… 题解列表 2024年11月23日 1 点赞 0 评论 620 浏览 评分:10.0
核电站问题(C语言) 摘要:解题思路:定义了一个名为 fun 的函数来计算一个与给定整数 n 相关的数值,并在 main 函数中通过输入 n 来调用 fun 函数并输出结果在 fun 函数中,对于 n …… 题解列表 2024年11月23日 0 点赞 0 评论 382 浏览 评分:10.0
自定义函数求一元二次方程 摘要:#include<bits/stdc++.h> using namespace std; int main() { double a,b,c,x1,x2;cin>>a>>b>>c; …… 题解列表 2024年11月23日 2 点赞 0 评论 1444 浏览 评分:10.0
1017: [编程入门]完数的判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int i, j, n, sum; cin >>…… 题解列表 2024年11月23日 0 点赞 0 评论 521 浏览 评分:10.0
输出个数、各数、逆序 摘要:解题思路:事项:1、循环数个数 2、采用高到低位3、重新提取数字,然后逆序输出就行了参考代码:#include <stdio.h>int main() { int n,a=0; scanf…… 题解列表 2024年11月24日 1 点赞 0 评论 1260 浏览 评分:10.0
2749: Hello, World!题解 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ cout << "Hello world!" << endl; return …… 题解列表 2024年11月24日 4 点赞 0 评论 1328 浏览 评分:10.0