原创 算法導論2.1-2.3 部分答案

習題2.1.2#include <iostream> using namespace std; void insectionSort(int a[],int len) { for(int i=1;i<len;i++) {

原创 微服務概念總結

微服務: 採用一組服務的方式來構建一個應用, 服務獨立部署在不同的進程中,甚至可以不同的語言來編寫,是獨立的,可以由獨立的團隊來維護 不同服務通過一些輕量級交互機制來通信,例如 RPC(遠程過程調用)、HTTP 等 微服務特徵: 參

原创 將markdown 轉爲 pdf的心酸路

折騰一番,網上各種方法都試過了,數學公式,中文兩全 最後給出方法 1. md ->html https://blog.csdn.net/dslztx/article/details/51334651 2. 谷歌瀏覽器打開網頁,右鍵 打印得

原创 geoserver 關於跨域出錯Cross-Origin Read Blocking (CORB) blocked cross-origin response

首先檢查geoserver 跨域設置 之後查看請求的工作區是否正確 我的問題就是工作區出錯了,寫成另一個工作區,WMS服務無法發送請求

原创 git pull 顯示already up to date或者error

git pull 顯示already up to date 1. 可能是你上傳的分支和pull的分支不一樣 2. git checkout master #轉到master分支 git pull 顯示error: The followin

原创 關於對話一致性三篇論文

1. A persona-Base Neural Conversation Model 基礎知識 詞袋模型(Bag of Words, BOW)與詞向量(Word Embedding)模型 詞袋模型就是將句子分詞,然後對每個詞進

原创 map 好用! C. Equal Sums

C. Equal Sumstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou

原创 數論 gcd 判斷p/q 在k進制下 是不是循環小數

轉自https://blog.csdn.net/we1215053460/article/details/80345769主要先化簡看分母和k進制數之間的關係,#include<stdio.h> int n; __int64 a,b,c

原创 Codeforces Round #480 (Div. 2)

A 略B 主要是一定是“YES”的 這個可能有點卡,其次就是儘量對稱即可C一直都是從前往後考慮,所以浪費了很多時間 ,後來換個思路,從後面往前考慮 這是破點可以保證if(visit[j]!=-1) j 到 i  這個區間一定是沒有被訪問過

原创 Codeforces Round #484 (Div. 2) B. Bus of Characters 模擬棧

http://codeforces.com/contest/982/problem/B一開始沒有想到模擬棧,用while來尋找introve的位置,超時#include <iostream> #include <queue> #inclu

原创 hash +線段樹 HDU 3973 AC's String

本題使用字符串的Hash來解決。將一個字符串看成是一個P進制的數字(可以聯想10進制數),那麼可以知道每一個字符串都可以被唯一表示(P> 256, 並不考慮高精度)。可是由於字符串的長度比較大,那麼我們無法保存如此大的數字。於是使用Has

原创 Kuhn-Munkres算法模板(二分圖最大權匹配)

講解https://blog.csdn.net/thundermrbird/article/details/52231639代碼https://blog.csdn.net/pi9nc/article/details/12250247int

原创 poj 3687-Labeling Balls 逆序拓撲排序

https://blog.csdn.net/u013486414/article/details/42616073

原创 Codeforces Round #478 (Div. 2) D Ghosts 會超時的判斷兩個之間關係,可以用map

給出起始座標(x,y)要充分利用題目條件,最好全都列出來運動方向(Vx,Vy)很容易得到判斷兩個是否相碰(gho[a].y-gho[b].y)*1.0/(gho[a].vy-gho[b].vy)==(gho[a].x-gho[b].x)*

原创 CCPC女生專場 2017

http://acm.hdu.edu.cn/showproblem.php?pid=6029hdu 6029 1.有兩個選擇(1) Add edges between this vertex and all the previous ve