两个方法 确定不来看看? 摘要:解题思路:直接加 和 递归注意事项:这是两个代码昂参考代码:#include<stdio.h> main() { int n,m,s=1; scanf("%d",&m); for(;m…… 题解列表 2022年05月11日 0 点赞 0 评论 389 浏览 评分:0.0
挺容易理解的程序 摘要:解题思路:先去空格(32) 再逆序 注意事项:字符串s限制80字符以内 可以自行修改参考代码:#include <stdio.h> #include <string.h> void qu32(ch…… 题解列表 2022年05月11日 0 点赞 0 评论 357 浏览 评分:9.9
求闰年很简单就是及注意格式 摘要:解题思路:输入输出的格式不熟练注意事项:wohai以为是我求余的地方出错了int(input())参考代码:def leapyear(y): if y%400 ==0 and y%4 ==0: …… 题解列表 2022年05月11日 0 点赞 0 评论 344 浏览 评分:0.0
C语言训练-百钱百鸡问题 百钱白鸡 摘要:解题思路:注意事项:参考代码:#includeint main(){int x3;int x1, x2;for (x3 = 75; x3 <= 85; x3++){if ((4 * x3 - 300)…… 题解列表 2022年05月11日 0 点赞 0 评论 373 浏览 评分:0.0
最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a, b, temp; scanf("%d%d", &a, &b); int res…… 题解列表 2022年05月11日 0 点赞 0 评论 255 浏览 评分:0.0
wode笨方法,用了两个小循环 摘要:解题思路:我自己都忘记了注意事项:双引号总是忘记加在大括号的两边之前在哪一道题目用过这个输出呢参考代码:shishu=float(input())print("{:6.2f}".format(shis…… 题解列表 2022年05月11日 0 点赞 0 评论 315 浏览 评分:0.0
最笨的方法,人家用max我比了大半天 摘要:解题思路:把max函数里面的东西都写出来了注意事项:我把底层都写出来了参考代码:a,b,c=map(float,input().strip().split())if a>b: if c>a: …… 题解列表 2022年05月11日 0 点赞 0 评论 323 浏览 评分:0.0
递归解决最大公约数问题——辗转相除法 摘要:#解题思路: 1、首先写一个函数 ```cpp int gcd(int a,int b); ``` 2、然后递归 ```cpp int gcd(int a,int b){ retur…… 题解列表 2022年05月11日 0 点赞 0 评论 469 浏览 评分:0.0
编写题解 1118: Tom数 一起来试试 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void main(){ char str[10]={ '0' }; whi…… 题解列表 2022年05月11日 0 点赞 0 评论 434 浏览 评分:0.0
编写题解 1200: 回文串 一起来练习吧!!! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str1[260],str2[260]; int i,…… 题解列表 2022年05月11日 0 点赞 0 评论 537 浏览 评分:9.9