题解列表
编写题解 1200: 回文串 一起来练习吧!!!
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str1[260],str2[260]; int i,……
编写题解 1118: Tom数 一起来试试
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void main(){ char str[10]={ '0' }; whi……
递归解决最大公约数问题——辗转相除法
摘要:#解题思路:
1、首先写一个函数
```cpp
int gcd(int a,int b);
```
2、然后递归
```cpp
int gcd(int a,int b){
retur……
最笨的方法,人家用max我比了大半天
摘要:解题思路:把max函数里面的东西都写出来了注意事项:我把底层都写出来了参考代码:a,b,c=map(float,input().strip().split())if a>b: if c>a: ……
wode笨方法,用了两个小循环
摘要:解题思路:我自己都忘记了注意事项:双引号总是忘记加在大括号的两边之前在哪一道题目用过这个输出呢参考代码:shishu=float(input())print("{:6.2f}".format(shis……
最大公约数与最小公倍数
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a, b, temp; scanf("%d%d", &a, &b); int res……
C语言训练-百钱百鸡问题 百钱白鸡
摘要:解题思路:注意事项:参考代码:#includeint main(){int x3;int x1, x2;for (x3 = 75; x3 <= 85; x3++){if ((4 * x3 - 300)……
求闰年很简单就是及注意格式
摘要:解题思路:输入输出的格式不熟练注意事项:wohai以为是我求余的地方出错了int(input())参考代码:def leapyear(y): if y%400 ==0 and y%4 ==0: ……