编写题解 1041: [编程入门]宏定义之找最大数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define MAX(x,y,z) (x>y?x:y)>z?(x>y?x:y):z double max(double x,doubl…… 题解列表 2022年03月08日 0 点赞 0 评论 319 浏览 评分:0.0
简单的事情(java) 摘要:解题思路:注意事项:参考代码:package c.dopp;import java.util.Scanner;public class math { public static void mai…… 题解列表 2022年03月08日 0 点赞 0 评论 422 浏览 评分:0.0
IP判断C++ 简单 摘要: #include #include using namespace std; bool judge(string s) { for (i…… 题解列表 2022年03月08日 0 点赞 0 评论 484 浏览 评分:0.0
C语言训练-求1+2!+3!+...+N!的和 摘要:注意事项:注意t和sum的范围,用长整型参考代码:#include<stdio.h>int main(){ int n,i; long int sum=0,t=1; scanf("%…… 题解列表 2022年03月08日 0 点赞 0 评论 448 浏览 评分:0.0
Hifipsysta-1691-数据结构-KMP字符串模式匹配算法实现(C++代码) 摘要:```cpp #include using namespace std; const int MXN=1e2+10; int nextTable[MXN]; int getNextTa…… 题解列表 2022年03月09日 0 点赞 0 评论 679 浏览 评分:0.0
编写题解 1011: [编程入门]最大公约数与最小公倍数--简单解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n; scanf("%d %d",&m,&n); int min = (m<n)?m:n; int …… 题解列表 2022年03月09日 0 点赞 0 评论 264 浏览 评分: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 评论 257 浏览 评分:0.0
编写题解 1028: [编程入门]自定义函数求一元二次方程--借鉴大佬的 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;float delta_func(float a,float b…… 题解列表 2022年03月09日 0 点赞 0 评论 357 浏览 评分:0.0
编写题解 1042: [编程入门]电报加密--解题 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<stdio.h>#include<string.h>#include<cmath>using namespace s…… 题解列表 2022年03月09日 0 点赞 0 评论 320 浏览 评分: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 评论 357 浏览 评分:0.0