logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

1111 Online Map c++

这奥体就用两次dijkstra算法,两个分开写就行了,两个都是独立的。所以本质上这道题就考的最短路径是否熟练,熟练的话写两次就行了,只是变量太多…#include<bits/stdc++.h>using namespace std;#define maxn 510int n,m;int source,desti;int Length[maxn][maxn];int Time[maxn]

#c++#图论#深度优先
二叉树查找特定节点的父节点,c++实现

node *findparent(node*root,int data){if(root==NULL)return NULL;if(root->left!=NULL&&root->left->data==data)return root;if(root->right!=NULL&&root->right->data==data)r

#链表#数据结构
计算理论导引第三版答案

最近在学这本书,无奈课后习题很多,答案又找不到,没想到在github上找到了直接上链接https://github.com/gaurangsaini/sipser-computation-3rd-solutions

vscode: Code Runner直接运行多文件C++程序

在用vscode编写C++链接多文件时候会出错,简单记录一下解决方法。先打开 Code Runner设置找到Edit in settings.json,点击进去,会出现一个json文件在json文件中有一个code-runner.executorMap,在里面填入:"cpp": "cd $dir && g++ -std=c++14 *.cpp -o $fileNameWithout

#visual studio code
tensorflow-gpu下载太慢问题解决

pip install tensorflow-gpu==2.6.0 -i https://pypi.douban.com/simpletensorflow-gpu==2.6.0把这个改成你想下载的版本即可

#tensorflow#深度学习#人工智能
IRIS数据集画散点图

from numpy import *from sklearn.datasets import load_irisfrom sklearn import treeimport matplotlib.pyplot as pltiris=load_iris()x=iris.datay=iris.targetplt.scatter(x[:50,0],x[:50,1],c='r',s=5,label='S

#python
VS Code 编写C++代码, 没有语法检查解决办法

直接进去插件设置搜索errorSquiggles或者直接在setting.json中添加:"C_Cpp.errorSquiggles": "Enabled"再乱写就会报错了

#vscode#c++
安卓如何判断是否是HDR视频

视频是HDR格式并且系统是API30及以上才能返回true。

文章图片
#android#音视频#java
到底了