求闰年很简单就是及注意格式 摘要:解题思路:输入输出的格式不熟练注意事项:wohai以为是我求余的地方出错了int(input())参考代码:def leapyear(y): if y%400 ==0 and y%4 ==0: …… 题解列表 2022年05月11日 0 点赞 0 评论 633 浏览 评分: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 评论 627 浏览 评分:0.0
最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a, b, temp; scanf("%d%d", &a, &b); int res…… 题解列表 2022年05月11日 0 点赞 0 评论 423 浏览 评分:0.0
wode笨方法,用了两个小循环 摘要:解题思路:我自己都忘记了注意事项:双引号总是忘记加在大括号的两边之前在哪一道题目用过这个输出呢参考代码:shishu=float(input())print("{:6.2f}".format(shis…… 题解列表 2022年05月11日 0 点赞 0 评论 546 浏览 评分:0.0
最笨的方法,人家用max我比了大半天 摘要:解题思路:把max函数里面的东西都写出来了注意事项:我把底层都写出来了参考代码:a,b,c=map(float,input().strip().split())if a>b: if c>a: …… 题解列表 2022年05月11日 0 点赞 0 评论 577 浏览 评分:0.0
递归解决最大公约数问题——辗转相除法 #解题思路:1、首先写一个函数```cppintgcd(inta,intb);```2、然后递归```cppintgcd(inta,intb){returna%b==0?b:gcd(b,a%b);}```参考代码:```cpp#includeusingnamespacestd;intgcd(inta, 题解列表 2022年05月11日 0 点赞 0 评论 726 浏览 评分:0.0
编写题解 1118: Tom数 一起来试试 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void main(){ char str[10]={ '0' }; whi…… 题解列表 2022年05月11日 0 点赞 0 评论 615 浏览 评分:0.0
不难不难循环加判断 摘要:解题思路:注意事项:kan了题解也终于是会写了,忘记python本身输入就是字符串,之前也写过转换字符串chr he ord两个函数都忘记了参考代码:x=input()s=""for i in x:…… 题解列表 2022年05月11日 0 点赞 0 评论 541 浏览 评分:0.0
按顺序输出三个数不难 解题思路:注意事项:可以引用下标输出,也可以直接循环输出都可一,就是上面列表名字要用起来参考代码:a=list(map(int,input().split()))a.sort()#yinwei上面定义了Aaforiina:#list的名字总是写成list要用aprint(i, 题解列表 2022年05月11日 0 点赞 0 评论 716 浏览 评分:0.0
编写题解 1547: 蓝桥杯算法提高VIP-理财计划(floor向下取整) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include <bits/stdc++.h> using namespace std; int main() { …… 题解列表 2022年05月11日 0 点赞 0 评论 549 浏览 评分:0.0