编写题解 1028: [编程入门]自定义函数求一元二次方程--借鉴大佬的 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;float delta_func(float a,float b…… 题解列表 2022年03月09日 0 点赞 0 评论 246 浏览 评分:0.0
C++直接减法模拟 摘要:解题思路:直接减法模拟即可注意事项:记得考虑余数不输出和商不输出的情况,此时输出0参考代码:#include<stdio.h>#include<string.h> const int N=1e5+5;…… 题解列表 2022年03月09日 0 点赞 0 评论 916 浏览 评分:9.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 评论 559 浏览 评分:0.0
排队买票 STL全排列 摘要:```cpp #include #include #include using namespace std; int queue[15]; int num[15]; int m,n,k;…… 题解列表 2022年03月09日 0 点赞 0 评论 285 浏览 评分:9.9
蓝桥杯2017年第八届真题-分巧克力 摘要:本题是一道很经典的二分例题 ```cpp #include #include using namespace std; int k, n; int h[100005], w[100005]…… 题解列表 2022年03月08日 0 点赞 0 评论 605 浏览 评分:9.9
IP判断C++ 简单 摘要: #include #include using namespace std; bool judge(string s) { for (i…… 题解列表 2022年03月08日 0 点赞 0 评论 329 浏览 评分:0.0
题解 亲和数 C++ 简单易懂 摘要:解题思路:1.输入m,n,并设s1,s2分别表示两数的真约数之和2.利用循环分别求得m,n的真约数之和,即s1,s23.判断s1是否等于n,s2是否等于m4.如果是的话输出YES,否的话输出NO注意事…… 题解列表 2022年03月08日 0 点赞 0 评论 383 浏览 评分:9.9
编写题解 1039: [编程入门]宏定义之闰年判断--解题 摘要:解题思路:注意事项:参考代码:#include <iostream> #define LEAP_YEAR(y) leap(y) //替换为该子函数 using namespace std; char …… 题解列表 2022年03月08日 0 点赞 0 评论 344 浏览 评分:0.0
编写题解 1038: [编程入门]宏定义练习之三角形面积--解题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#define area sqrt(S*(S-a)*(S-b)*(S-c))#define S ((a+b+c)/2)usi…… 题解列表 2022年03月08日 0 点赞 0 评论 166 浏览 评分:0.0
编写题解 1037: [编程入门]宏定义的练习--解题 摘要:解题思路:注意事项:参考代码:#include <iostream>#define REMAINDER(num1, num2) (num1 % num2)using namespace std;int…… 题解列表 2022年03月08日 0 点赞 0 评论 173 浏览 评分:0.0