Python斐波拉契---本题python无解 摘要:解题思路: 事先说明,本题还没有其他人提供python解法,我也没能解决,这个参考代码不能正确通过题目。 本题有以下几个难点需要解决: &nbs 题解列表 2022年03月16日 0 点赞 5 评论 968 浏览 评分:9.0
给定年月日,判断是当年第几天 摘要:#include <stdio.h> int main() { int a[12]={31,28,31,30,31,30,31,31,30,31,30,31};//12个月,每个月天数(非闰年…… 题解列表 2022年03月19日 0 点赞 0 评论 747 浏览 评分:9.0
链表合并的详细解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<malloc.h>typedef struct student//定义学生结构体{ int id; int…… 题解列表 2022年03月24日 0 点赞 0 评论 769 浏览 评分:9.0
题解 1809: [编程基础]输入输出练习之精度控制2 摘要:解题思路:Python内置的float类型本身就是双精度注意事项:参考代码:a = float(input())print('{:.12f}'.format(a))…… 题解列表 2022年03月25日 0 点赞 0 评论 635 浏览 评分:9.0
题解 1812: [编程基础]输入输出练习之输出图案 摘要:解题思路:format 格式化函数^ 居中对齐\n 换行注意事项:参考代码:a = input()print('{:^5}\n{:^5}\n{:^5}'.format(a,a*3,a*…… 题解列表 2022年03月25日 0 点赞 0 评论 764 浏览 评分:9.0
树状数组,python 摘要:解题思路:注意事项:参考代码:n=int(input())h=list(map(int,input().split()))maxh=max(h)cnt=[0]*(n)c=[0]*(maxh+2)#c[…… 题解列表 2022年03月27日 0 点赞 1 评论 663 浏览 评分:9.0
datetime处理日期真是太省心了 摘要:```python import datetime s = input() #从输入的字符串里把年月日分别搞出来 years = int(s[:4]) mouths = int(s[4:6]…… 题解列表 2022年03月28日 1 点赞 1 评论 676 浏览 评分:9.0
超级简单版【c++】 摘要:````cpp #include using namespace std; int months[] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, …… 题解列表 2022年03月28日 0 点赞 0 评论 437 浏览 评分:9.0
数据结构-图的遍历——DFS深度优先搜索 摘要:解题思路:用样例画出无向图,手动对图进行搜索,发现规律注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int Map[55][55];…… 题解列表 2022年03月28日 0 点赞 0 评论 805 浏览 评分:9.0
题解 1070: 二级C语言-成绩归类 摘要:解题思路:循环判断输入的数据注意事项:发现有0或负数时跳出循环,结束输入注意包括0或负数以及之后的数据都不计入统计参考代码:li=li1=[]flg = 0while True: #循环控制输入 …… 题解列表 2022年03月29日 0 点赞 0 评论 683 浏览 评分:9.0