编写题解 1116: IP判断 摘要:解题思路:split可以设定分隔符,非常好用。注意事项:参考代码:while True: l = input().split('.') if l == 'E…… 题解列表 2022年03月09日 0 点赞 0 评论 414 浏览 评分:8.0
用C语言征服十字图!!! 摘要:解题思路:本题的关键在于要理解题中的“3层十字架”是什么意思,然后我们通过观察图像来得到它的排布规律注意事项:1.十字架指的是由“.”构成的空白部分;2.图像的排布规律推荐从一层十字架看,然后再看看多…… 题解列表 2022年03月09日 1 点赞 0 评论 758 浏览 评分:9.9
编写题解 1115: DNA 摘要:解题思路:利用二维数组,应该很容易看懂(绝不是因为我想不出更聪明的做法了)。注意事项:大小写X卡了一会,注意要大写。参考代码:n = eval(input()) for i in range(n):…… 题解列表 2022年03月09日 0 点赞 0 评论 419 浏览 评分:0.0
动态分配二维数组,矩阵转置 摘要: #include #include void main() { int n = 0; scanf("%d", &n); …… 题解列表 2022年03月09日 0 点赞 0 评论 394 浏览 评分:9.9
优质题解 1052: [编程入门]链表合并 摘要:解题思路:主要需要解决的问题:(1)如何合并(2)如何排序是一边排序一边合并呢?还是先合并再排序呢?我选择了后者。一共写了5个子函数,分别用于创建链表,打印链表,合并链表,交换两结点数据,排序(需要调…… 题解列表 2022年03月09日 4 点赞 6 评论 4421 浏览 评分:9.6
编写题解 1043: [编程入门]三个数字的排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[3]; int t; for(int i=0;i<3;i++){ s…… 题解列表 2022年03月09日 0 点赞 0 评论 260 浏览 评分:0.0
(fly)1709: 数据结构-Floyd(弗洛伊德)最短路径算法(python) 摘要:解题思路:注意事项:参考代码:n=int(input()) inf=float('inf') dp=[] for i in range(n): dp.append(li…… 题解列表 2022年03月09日 0 点赞 0 评论 294 浏览 评分:0.0
编写题解 1042: [编程入门]电报加密--解题 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<stdio.h>#include<string.h>#include<cmath>using namespace s…… 题解列表 2022年03月09日 0 点赞 0 评论 278 浏览 评分:0.0
编写题解 1028: [编程入门]自定义函数求一元二次方程--借鉴大佬的 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;float delta_func(float a,float b…… 题解列表 2022年03月09日 0 点赞 0 评论 305 浏览 评分:0.0
编写题解 1027: [编程入门]自定义函数处理最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void han(int m,int n){ int min = (m<n)?m:n; int max = (m>n)?m:n; …… 题解列表 2022年03月09日 0 点赞 0 评论 216 浏览 评分:0.0