题解列表

筛选

用字符串自定义函数分离

摘要:解题思路:注意事项:注意'\0'不要漏掉参考代码:#include <stdio.h>#include <string.h>int main(){    char a[5];    gets(a);/……

2176仙岛求药 中等BFS(注释很详细)

摘要:解题思路:经典的BFS.注意事项:关于BFS/DFS我已经写过几篇题解了,这里就不再啰嗦了.              对于DFS/BFS特性的说明与比较,我放在了我的以下两篇题解中,有兴趣可以看看.……

通俗易懂C++

摘要:参考代码:#include<iostream> using namespace std; void f(int x){     cout<<x<<"=";     for(int i=2;i<……

python-dfs实现全排列

#Author:luoxijixian#Createtime:2023/1/6#Filename:题目3030全排列#Description:simpleintroducyionofthecode'''s=list(input())n=len(s)path=[""]*(n+10)st=[1]*(n+1

2774: 计算三角形面积

```cpp#include#include#includeusingnamespacestd;doublegetBC(doublex1,doubley1,doublex2,doubley2){doublep,length;p=(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2);lengt

2773: 计算线段长度

```cpp#include#include#includeusingnamespacestd;intmain(){doubleXa,Ya,Xb,Yb;cin>>Xa>>Ya>>Xb>>Yb;cout