Py2821-开关灯 摘要:参考代码:n,m=map(int,input().split())light=[1]*(n+1)for&nb…… 题解列表 2025年11月12日 0 点赞 0 评论 113 浏览 评分:0.0
开关灯的相关解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N,M,m=-1,n=0; scanf("%d%d",&N,&a…… 题解列表 2025年11月12日 0 点赞 0 评论 143 浏览 评分: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 评论 181 浏览 评分:0.0
2809:斐波那契数列 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include <math.h>int main(){ int k,f1=1,f2=1,f3; scanf(&…… 题解列表 2025年11月13日 1 点赞 0 评论 287 浏览 评分:0.0
简单易懂求奇偶和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,j,o,a=0,b=0; scanf("%d",&n); f…… 题解列表 2025年11月13日 2 点赞 0 评论 189 浏览 评分:0.0
寻找矩阵的最值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define NUM 200int MAX(int arr[][NUM],int n){ int max = arr[0]…… 题解列表 2025年11月13日 0 点赞 0 评论 208 浏览 评分:0.0
初学py,注意输入的问题 摘要:解题思路:注意事项:参考代码:res=float(input())a=input().strip()b=input().…… 题解列表 2025年11月15日 0 点赞 0 评论 180 浏览 评分:0.0
初学py,在 Python 中操作 ASCII 摘要:解题思路:注意事项:参考代码:p=input()ans=""iflen(p)==2:print(chr(or…… 题解列表 2025年11月15日 0 点赞 0 评论 202 浏览 评分:0.0
蓝桥杯2025年第十六届省赛真题-抽奖 摘要:解题思路: 创建两个二维数组,分别存放转盘编号(大小为3*n)和抽奖次数(大小为m*3)。 创建一个数组temp大小为3,用于存放每次抽奖3个转盘的结果。再创建数组pionte…… 题解列表 2025年11月15日 0 点赞 0 评论 391 浏览 评分:0.0
2240:删除数组零元素 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int num[1000]={};int CompactIntegers(int n,int arr[1000]);int …… 题解列表 2025年11月17日 0 点赞 0 评论 99 浏览 评分:0.0