原创 unity連接mysql數據庫

1.首先你需要安裝mysql數據庫,我裝的是最新版的8.0的數據庫。沒有的可以去這個鏈接下載 https://dev.mysql.com/downloads/mysql/ 2.需要下載mysql.data的動態鏈接庫文件 鏈接:h

原创 LIS&&LCS

LCS: #include<cstdio> #include<cstring> #include<algorithm> #include<queue> #include<stack> #define INF 0x3f3f3f3f

原创 More is better --並查集

Description Mr Wang wants some boys to help him with a project. Because the project is rather complex,

原创 Super Jumping! Jumping! Jumping! --DP

Problem Description Nowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU

原创 確定比賽名次--topo

Problem Description 有N個比賽隊(1<=N<=500),編號依次爲1,2,3,。。。。,N進行比賽,比賽結束後,裁判委員會要將所有參賽隊伍從前往後依次排名,但現在裁判委員會不能直接獲得每個隊的比賽成績,只知道

原创 樹的直徑----BFS

樹的直徑 The northern part of the Pyramid contains a very large and complicated labyrinth. The labyrinth is divide

原创 Networking --最小生成樹

Description You are assigned to design network connections between certain points in a wide area. You are given a se

原创 最少攔截系統

Problem Description 某國爲了防禦敵國的導彈襲擊,發展出一種導彈攔截系統.但是這種導彈攔截系統有一個缺陷:雖然它的第一發炮彈能夠到達任意的高度,但是以後每一發炮彈都不能超過前一發的高度.某天,雷達捕捉到敵國的導彈

原创 Reward--topo

Problem Description Dandelion’s uncle is a boss of a factory. As the spring festival is coming , he wants to distr

原创 走迷宮最短步數--BFS

X:牆; .:可以走的路; D:出口; s:出生點; 源程序: #include<cstdio> #include<cstring> #include<algorithm> #include<queue> using namesp

原创 A-B Game --貪心

Fat brother and Maze are playing a kind of special (hentai) game by two integers A and B. First Fat brother write

原创 Ignatius and the Princess IV --DP

Problem Description “OK, you are not too bad, em… But you can never pass the next test.” feng5166 says. “I will te

原创 暢通工程--最小生成樹(貪心)

Problem Description 省政府“暢通工程”的目標是使全省任何兩個村莊間都可以實現公路交通(但不一定有直接的公路相連,只要能間接通過公路可達即可)。經過調查評估,得到的統計表中列出了有可能建設公路的若干條道路的成

原创 Fox And Two Dots --DFS

 Fox And Two Dots   Fox Ciel is playing a mobile puzzle game called "Two Dots". The basic levels are played on a

原创 最短路--dijkstra

n個點,m條邊,求1 - n 的距離 輸入x y z,表示x到y的距離爲z 輸出1 - n的最短距離 不存在輸出-1 //如果多次循環記得清空vector #include<cstdio> #include<queue>