C语言考试练习题_保留字母 试一试你也可以 摘要:解题思路:注意事项:参考代码: #include<stdio.h>#include<string.h>int main(){ char s[100],b[100]; …… 题解列表 2022年05月11日 0 点赞 0 评论 256 浏览 评分:0.0
两个方法 确定不来看看? 摘要:解题思路:直接加 和 递归注意事项:这是两个代码昂参考代码:#include<stdio.h> main() { int n,m,s=1; scanf("%d",&m); for(;m…… 题解列表 2022年05月11日 0 点赞 0 评论 383 浏览 评分:0.0
求闰年很简单就是及注意格式 摘要:解题思路:输入输出的格式不熟练注意事项:wohai以为是我求余的地方出错了int(input())参考代码:def leapyear(y): if y%400 ==0 and y%4 ==0: …… 题解列表 2022年05月11日 0 点赞 0 评论 336 浏览 评分: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 评论 372 浏览 评分:0.0
最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a, b, temp; scanf("%d%d", &a, &b); int res…… 题解列表 2022年05月11日 0 点赞 0 评论 251 浏览 评分:0.0
wode笨方法,用了两个小循环 摘要:解题思路:我自己都忘记了注意事项:双引号总是忘记加在大括号的两边之前在哪一道题目用过这个输出呢参考代码:shishu=float(input())print("{:6.2f}".format(shis…… 题解列表 2022年05月11日 0 点赞 0 评论 307 浏览 评分:0.0
最笨的方法,人家用max我比了大半天 摘要:解题思路:把max函数里面的东西都写出来了注意事项:我把底层都写出来了参考代码:a,b,c=map(float,input().strip().split())if a>b: if c>a: …… 题解列表 2022年05月11日 0 点赞 0 评论 319 浏览 评分:0.0
递归解决最大公约数问题——辗转相除法 摘要:#解题思路: 1、首先写一个函数 ```cpp int gcd(int a,int b); ``` 2、然后递归 ```cpp int gcd(int a,int b){ retur…… 题解列表 2022年05月11日 0 点赞 0 评论 463 浏览 评分:0.0
编写题解 1118: Tom数 一起来试试 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void main(){ char str[10]={ '0' }; whi…… 题解列表 2022年05月11日 0 点赞 0 评论 428 浏览 评分:0.0
不难不难循环加判断 摘要:解题思路:注意事项:kan了题解也终于是会写了,忘记python本身输入就是字符串,之前也写过转换字符串chr he ord两个函数都忘记了参考代码:x=input()s=""for i in x:…… 题解列表 2022年05月11日 0 点赞 0 评论 319 浏览 评分:0.0