1141: C语言训练-百钱百鸡问题 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { for(int i = 0; i < 20; i++) for(int j…… 题解列表 2022年10月19日 0 点赞 0 评论 285 浏览 评分:0.0
整除问题——python解法 摘要:解题思路:水题注意事项:参考代码:min,max,f=map(int,input().split())for i in range(min,max+1): if i%f==0: p…… 题解列表 2022年10月19日 0 点赞 0 评论 335 浏览 评分:0.0
整数平均值——python简单解法(答案要取整) 摘要:解题思路:求列表元素平均数注意事项:最后输出的结果是整数,所以要整除参考代码:n=int(input())l=list(map(int,input().split()))sum=0for i in l…… 题解列表 2022年10月19日 0 点赞 0 评论 473 浏览 评分:0.0
数组查找及替换——python超详细简单解法 摘要:解题思路:注意事项:参考代码:n,b=map(int,input().split())l=list(map(int,input().split())) #将输入转化为列表l.so…… 题解列表 2022年10月19日 0 点赞 0 评论 346 浏览 评分:0.0
数的统计——列表转集合,5行精简代码 摘要:解题思路:通过列表转集合的方式筛出重复数,然后再用count方法统计出现次数注意事项:参考代码:n=int(input())l=list(map(int,input().split()))single…… 题解列表 2022年10月19日 0 点赞 0 评论 526 浏览 评分:9.9
数对——python四行解决问题 摘要:解题思路:注意事项:注意题目中输出时含空格的参考代码:x=int(input())for i in range(1,x+1): if x%i==0: print(str(i)+" …… 题解列表 2022年10月19日 0 点赞 0 评论 302 浏览 评分:0.0
数位分离——python简单解法 摘要:解题思路:输入,逐个输出,通过end=“ ”控制输出的空格注意事项:参考代码x=input()for i in x: print(i,end=' '):…… 题解列表 2022年10月19日 0 点赞 0 评论 502 浏览 评分:8.0
简单 c语言 摘要:解题思路:先找到a的一个公因数,再去找b的公因数,判断是否相等,若不相等,继续寻找注意事项:参考代码:#include<stdio.h>int main(){ int a, b,i,c,d; …… 题解列表 2022年10月19日 0 点赞 0 评论 294 浏览 评分:0.0
输入输出练习之浮点数专题 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ double a; scanf("%lf",&a); printf("%f\n",a); printf("%.…… 题解列表 2022年10月19日 0 点赞 0 评论 339 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-求和 摘要:解题思路:注意事项:参考代码:public class Main { // 1*3 1*6 1*9 3*6 3*9 6*9 ==(1+3+6+9)的平方 减去 自身平方和 去除一半的值 …… 题解列表 2022年10月18日 0 点赞 0 评论 1313 浏览 评分:9.9