1857: 姜太公钓鱼 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int n = 0, a = 0, ans = 0; scanf("%d", &n…… 题解列表 2022年10月18日 0 点赞 0 评论 203 浏览 评分:0.0
输入输出练习之浮点数专题 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ double a; scanf("%lf",&a); printf("%f\n",a); printf("%.…… 题解列表 2022年10月19日 0 点赞 0 评论 296 浏览 评分:0.0
简单 c语言 摘要:解题思路:先找到a的一个公因数,再去找b的公因数,判断是否相等,若不相等,继续寻找注意事项:参考代码:#include<stdio.h>int main(){ int a, b,i,c,d; …… 题解列表 2022年10月19日 0 点赞 0 评论 271 浏览 评分:0.0
数对——python四行解决问题 摘要:解题思路:注意事项:注意题目中输出时含空格的参考代码:x=int(input())for i in range(1,x+1): if x%i==0: print(str(i)+" …… 题解列表 2022年10月19日 0 点赞 0 评论 265 浏览 评分:0.0
数组查找及替换——python超详细简单解法 摘要:解题思路:注意事项:参考代码:n,b=map(int,input().split())l=list(map(int,input().split())) #将输入转化为列表l.so…… 题解列表 2022年10月19日 0 点赞 0 评论 302 浏览 评分:0.0
整数平均值——python简单解法(答案要取整) 摘要:解题思路:求列表元素平均数注意事项:最后输出的结果是整数,所以要整除参考代码:n=int(input())l=list(map(int,input().split()))sum=0for i in l…… 题解列表 2022年10月19日 0 点赞 0 评论 426 浏览 评分: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 评论 297 浏览 评分:0.0
1141: C语言训练-百钱百鸡问题 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { for(int i = 0; i < 20; i++) for(int j…… 题解列表 2022年10月19日 0 点赞 0 评论 260 浏览 评分:0.0
编写题解 1810: [编程基础]输入输出练习之精度控制3 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char char_1; int number_1; float float_1; do…… 题解列表 2022年10月19日 0 点赞 0 评论 248 浏览 评分:0.0
简单明了,一眼看懂 摘要:解题思路:使用函数分步解决注意事项:若找不到这样的数则print(-1)参考代码:#判断是否是回文 def isPalindrome(num): temp=int(str(num)[::-…… 题解列表 2022年10月19日 0 点赞 0 评论 290 浏览 评分:0.0