最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a, b, temp; scanf("%d%d", &a, &b); int res…… 题解列表 2022年05月11日 0 点赞 0 评论 296 浏览 评分:0.0
wode笨方法,用了两个小循环 摘要:解题思路:我自己都忘记了注意事项:双引号总是忘记加在大括号的两边之前在哪一道题目用过这个输出呢参考代码:shishu=float(input())print("{:6.2f}".format(shis…… 题解列表 2022年05月11日 0 点赞 0 评论 405 浏览 评分:0.0
最笨的方法,人家用max我比了大半天 摘要:解题思路:把max函数里面的东西都写出来了注意事项:我把底层都写出来了参考代码:a,b,c=map(float,input().strip().split())if a>b: if c>a: …… 题解列表 2022年05月11日 0 点赞 0 评论 402 浏览 评分:0.0
递归解决最大公约数问题——辗转相除法 摘要:#解题思路: 1、首先写一个函数 ```cpp int gcd(int a,int b); ``` 2、然后递归 ```cpp int gcd(int a,int b){ retur…… 题解列表 2022年05月11日 0 点赞 0 评论 547 浏览 评分:0.0
编写题解 1118: Tom数 一起来试试 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void main(){ char str[10]={ '0' }; whi…… 题解列表 2022年05月11日 0 点赞 0 评论 496 浏览 评分:0.0
编写题解 1200: 回文串 一起来练习吧!!! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str1[260],str2[260]; int i,…… 题解列表 2022年05月11日 0 点赞 0 评论 605 浏览 评分:9.9
不难不难循环加判断 摘要:解题思路:注意事项:kan了题解也终于是会写了,忘记python本身输入就是字符串,之前也写过转换字符串chr he ord两个函数都忘记了参考代码:x=input()s=""for i in x:…… 题解列表 2022年05月11日 0 点赞 0 评论 398 浏览 评分:0.0
按顺序输出三个数不难 摘要:解题思路:注意事项:可以引用下标输出,也可以直接循环输出都可一,就是上面列表名字要用起来参考代码:a=list(map(int,input().split()))a.sort()#yinwei上面定义…… 题解列表 2022年05月11日 0 点赞 0 评论 487 浏览 评分:0.0
1166: 求[X,Y]内被除3余1并且被除5余3的整数的和(简捷 易懂) 摘要: import java.util.Scanner; public class _1166_求_X_Y_内被除3余1并且被除5余3的整数的和 { public s…… 题解列表 2022年05月11日 0 点赞 0 评论 572 浏览 评分:9.9
生活总是充满令人期待的风光,所以不要失望请一直向前 摘要:解题思路:利用数学方程组写出注意事项:所有的鸡都是整数参考代码:#include<stdio.h>main(){ int x,y,z;//x为公鸡数量 y为母鸡数量 z为鸡雏数量 for(x=0;x<…… 题解列表 2022年05月11日 0 点赞 0 评论 530 浏览 评分:9.9