2809:斐波那契数列 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include <math.h>int main(){ int k,f1=1,f2=1,f3; scanf(&…… 题解列表 2025年11月13日 1 点赞 0 评论 267 浏览 评分:0.0
公约公数的题解 摘要:解题思路:两个整数A,B若A>B,则A=A-B若A<B,则B=B-A若A=B,则A=B为两者最大公因数。若A不等于B,继续返回执行第一项。(大的数减小的数直至差与减数大小相等)注意事项:参…… 题解列表 2025年11月13日 0 点赞 0 评论 170 浏览 评分:0.0
开关灯的相关解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N,M,m=-1,n=0; scanf("%d%d",&N,&a…… 题解列表 2025年11月12日 0 点赞 0 评论 135 浏览 评分:0.0
Py2821-开关灯 摘要:参考代码:n,m=map(int,input().split())light=[1]*(n+1)for&nb…… 题解列表 2025年11月12日 0 点赞 0 评论 109 浏览 评分:0.0
水仙花数问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b[100],i,…… 题解列表 2025年11月12日 2 点赞 0 评论 223 浏览 评分:0.0
1022:帅选n以内的素数 摘要:解题思路:注意事项:参考代码:方法一:不使用子函数#include<stdio.h>#include<math.h>int main(){ int n,k,i,j; scanf…… 题解列表 2025年11月05日 0 点赞 0 评论 378 浏览 评分:0.0
1141:百钱百鸡 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int cock,hen,chicken; fo…… 题解列表 2025年10月21日 1 点赞 0 评论 257 浏览 评分:2.0
3044: 电池的寿命 摘要:#include<stdio.h>int main(){ int N; int single_max; float sum = 0.0; int temp; while(scanf(&qu…… 题解列表 2025年11月12日 0 点赞 0 评论 128 浏览 评分:0.0
发工资咯贪心算法 摘要:#include<stdio.h>int main(){ //贪心算法:从最大纸币开始选择 int b[6]={100,50,10,5,2,1};//定义一个数组存储面额 int n;//…… 题解列表 2025年10月08日 0 点赞 0 评论 244 浏览 评分:0.0
1286: 最大配对 摘要:#include<iostream>#include<algorithm>#include<cmath>#include<vector>using na…… 题解列表 2025年11月12日 0 点赞 0 评论 159 浏览 评分:0.0