原创 hihocoder 1680 hiho字符串2

#1680 : hiho字符串2 時間限制:10000ms 單點時限:1000ms 內存限制:256MB 描述 我們定義第一代hiho字符串是"hiho"。   第N代hiho字符串是由第N-1代hiho字符串變化得到,規則是: h ->

原创 hihocoder 1689 推斷大小關係 並查集+dfs

#1689 : 推斷大小關係 時間限制:20000ms 單點時限:2000ms 內存限制:256MB 描述 有N個整數A1, A2, ... AN,現在我們知道M條關於這N個整數的信息。每條信息是: Ai < Aj 或者 Ai = Aj

原创 hihocoder 1157 : 建造金字塔

#include<bits/stdc++.h> using namespace std; const int mx=1000+100; typedef long long ll; const ll INF =100000000000

原创 hihocoder 1238 Total Highway Distance

時間限制:10000ms 單點時限:1000ms 內存限制:256MB 描述 Little Hi and Little Ho are playing a construction simulation game. They bu

原创 hdu 5385 The path

Problem DescriptionYou have a connected directed graph.Let d(x) be the length of the shortest path from 1 to x.Special

原创 uva 1471 Defense Lines

Defense Lines Time Limit: 3000MS   Memory Limit: Unknown   64bit IO Format: %lld & %llu Submit Status Description

原创 hihocoder 1145

#1145 : 幻想鄉的日常 時間限制:20000ms 單點時限:1000ms 內存限制:256MB 描述 幻想鄉一共有n處居所,編號從1到n。這些居所被n-1條邊連起來,形成了一個樹形的結構。 每處居所都居住着一個小

原创 uva 806 Spatial Structures

#include <iostream> #include<cstdio> #include<algorithm> #include<cstring> #include<string> #include<vector> using nam

原创 UVA 1103

Description In order to understand early civilizations, archaeologists often study texts written in ancient languages.

原创 uva 12118 Inspector's Dilemma

In a country, there are a number of cities. Each pair of city is connected by a highway, bi-directional ofcourse. A roa

原创 hihocodxer1187 Divisors

時間限制:10000ms 單點時限:1000ms 內存限制:256MB 描述 Given an integer n, for all integers not larger than n, find the integer wit

原创 hdu 5486 Difference of Clustering

#include <iostream> #include<cstdio> #include<cstring> #include<algorithm> #include<cstring> #include<vector> #include<

原创 hihocoder 諾茲多姆

時間限制:1000ms 單點時限:1000ms 內存限制:256MB 描述 wuzhengkai是一個爐石傳說玩家。 有一天,他碰到對面上了個諾茲多姆並上了嘲諷和聖盾。 諾茲多姆是一個有8點攻擊力和8點生命值的隨從,這意味着他能夠

原创 hihocoder 1372 平方求和

#include <bits/stdc++.h> using namespace std; const int mx=1000000001+100000; int n; vector<int> g; int dfs(int num,in

原创 博客續更說明

 1.以前一直以爲寫的博客沒幾個人看,然而實際上最近看了一下瀏覽量,事實上並沒有我想的那麼低,還是有那麼一些人瀏覽的,在這裏表示一下歉意,我一開始並不認爲會有人看,所以都是匆匆寫了幾句可有可無的話。 2.由於好久不再參加比賽,也沒有學些什