Time of Update: 2014-07-19
標籤:表單繼承 組合查詢
Time of Update: 2014-07-19
標籤:floyd 最短路 最短路問題。題意是說 給你一個矩陣,是各點到各點所需費用。然後給你N個數,是每個點所需過路費。然後輸出 詢問 a,b 之間所需最小費用,還有路徑。如果不是路徑 必須輸出
Time of Update: 2014-07-19
標籤:leetcodeDetermine whether an integer is a palindrome. Do this without extra
Time of Update: 2014-07-19
標籤:迴圈隊列 c 資料結構 <span style="font-size:18px;">#include<stdio.h>#define MaxQueueSize 15typedef int DataType;typedef struct{DataType queue[MaxQueueSize];int rear;//隊列指標int front;//
Time of Update: 2014-07-19
標籤:dfs 離散化 連結:https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4675題目大意:在一個平面上有 n (1<=n<=50) 個矩形,給你左上方和右下角的座標(0<=x<=10^6, 0<=y<
Time of Update: 2014-07-19
標籤:shared_ptr 智能指標 類指標對象 tr1 boost 對於tr1::shared_ptr在安裝vs同時會內建安裝,但是版本較低的不存在。而boost作為tr1的實現品,包含“AlgorithmsBroken Compiler WorkaroundsConcurrent
Time of Update: 2014-07-19
標籤:markdown最近基於github + hexo 搭建了自己的部落格,開始用markdown寫部落格,推薦 mac 平台用 mou 這個軟體或者 vim。介紹下markdown文法插入代碼的規則:有一種方法是所有代碼之前空四個格就自動識別為代碼了,但是這樣沒有行號,可以自己寫個程式處理,但是比較麻煩,而且強行插入行號可能會出現顯示問題。還有一種方法比較好。比如添加以下代碼:``` c#include <stdio.h>int
Time of Update: 2014-07-19
標籤:hdu 資料結構 題意:n堆數字 m個操作 操作是兩個人輪流執行 有5種操作 T操作拿一堆數字 C操作兩個人比較自己手中最大的數字勝者得到對方的數字 L操作扔掉最大數字 A操作使最大數字加上一個值 E操作是最大數字改變值 兩個人按上述規則進行R輪遊戲
Time of Update: 2014-07-19
標籤:c++ hduj Least Common MultipleTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 29480 Accepted Submission(s):
Time of Update: 2014-07-19
標籤:python django celery orangleliu 翻譯 原文點擊查看如果你的工作和 Django 相關,
Time of Update: 2014-07-19
標籤:kruskal 最短路變形 最大產生樹 最短路變形或最大產生樹變形。問 目標兩地之間能通過的小重量。用最短路把初始賦為INF,其他為0.然後找 dis[v]=min(dis[u],
Time of Update: 2014-07-19
標籤:最短路 spfa 枚舉 枚舉+最短路題意是說出發地 和 目的地 之間有一條邊是免費的。問你最小費用。誤區:求出最短路-路徑中的最大邊。(有些其他邊免費之後,可能最短路就變了)正確思路:枚舉每條邊,將其費用設為0.然後求最短路。找費用最小。這是無向圖,至於地名可以用map映射。#include<cstdio>#include<cstring>#include&
Time of Update: 2014-07-19
標籤:style http io for re c 連結:hdu 3371已知已連通的路的序號,以及未連通的路的費用,求將所有城市連通的最小費用也是將已連通的路的費用記為0,就轉化成了基本最小產生樹的題不過這題數組要開的大點,不然很容易就RE了、、、#include<cstdio>#
Time of Update: 2014-07-19
標籤:使用 資料 io cti re c eclipse還原預設的面板設計:Window > Reset Perspective>
Time of Update: 2014-07-19
標籤:re c ar 設計 size log 一、設計原則(1)減少記憶體片段(2)減少向作業系統申請記憶體的次數(3)降低各個模組的開發效率二、源碼結構struct ngx_pool_s { ngx_pool_data_t
Time of Update: 2014-07-19
標籤:style blog http color 使用 strong 思考與分析:
Time of Update: 2014-07-19
標籤:hdu 動規 最大連續子序列Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 18316 Accepted Submission(s): 8127Problem
Time of Update: 2014-07-19
標籤:style blog http color io for 題目連結: http://acm.hdu.edu.cn/showproblem.php?pid=2031題目大意:進位轉換,先變成十進位在進行進位間的轉化。 1 #include<stdio.h> 2 int
Time of Update: 2014-07-19
標籤:style color 使用 檔案 io re 準備材料:1.ubuntukylin14,百度進官網自行下載;2.ns-allinone-2.35.tar.gz,百度進官網自行下載;3.虛擬機器:vmwareworkstation(可選).4.不推薦windows環境下的cygwin+ns
Time of Update: 2014-07-19
標籤:資料 io for cti re c what‘s xxxPCA principal components analysis is for dimensionality reduction.主要是通過對共變數矩陣Covariance matrix進行特徵分解,以得出資料的主成分(