题解列表
Hifipsysta-1691-数据结构-KMP字符串模式匹配算法实现(C++代码)
摘要:```cpp
#include
using namespace std;
const int MXN=1e2+10;
int nextTable[MXN];
int getNextTa……
排队买票 STL全排列
摘要:```cpp
#include
#include
#include
using namespace std;
int queue[15];
int num[15];
int m,n,k;……
蓝桥杯2017年第八届真题-分巧克力
摘要:本题是一道很经典的二分例题
```cpp
#include
#include
using namespace std;
int k, n;
int h[100005], w[100005]……
IP判断C++ 简单
摘要: #include
#include
using namespace std;
bool judge(string s)
{
for (i……
题解 亲和数 C++ 简单易懂
摘要:解题思路:1.输入m,n,并设s1,s2分别表示两数的真约数之和2.利用循环分别求得m,n的真约数之和,即s1,s23.判断s1是否等于n,s2是否等于m4.如果是的话输出YES,否的话输出NO注意事……
编写题解 1039: [编程入门]宏定义之闰年判断--解题
摘要:解题思路:注意事项:参考代码:#include <iostream> #define LEAP_YEAR(y) leap(y) //替换为该子函数 using namespace std; char ……
编写题解 1038: [编程入门]宏定义练习之三角形面积--解题
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#define area sqrt(S*(S-a)*(S-b)*(S-c))#define S ((a+b+c)/2)usi……
编写题解 1037: [编程入门]宏定义的练习--解题
摘要:解题思路:注意事项:参考代码:#include <iostream>#define REMAINDER(num1, num2) (num1 % num2)using namespace std;int……
编写题解 1048: [编程入门]自定义函数之字符串拷贝--解题
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<iostream>#include<string.h>using namespace std;int main(){ ……