书山有径勤为路>>>>>>>>

<<<<<<<<学海无涯苦作舟!

2011年9月23日

Kruskal算法解决POJ 1258

摘要: DescriptionFarmer John has been elected mayor of his town! One of his campaign promises was to bring internet connectivity to all farms in the area. He needs your help, of course.Farmer John ordered a high speed connection for his farm and is going to share his connectivity with the other farmers. T 阅读全文

posted @ 2011-09-23 20:55 More study needed. 阅读(305) 评论(0) 推荐(0) 编辑

2011年9月22日

Kruskal算法解决POJ 2421--有点难度

摘要: DescriptionThere are N villages, which are numbered from 1 to N, and you should build some roads such that every two villages can connect to each other. We say two village A and B are connected, if and only if there is a road between A and B, or there exists a village C such that there is a road bet 阅读全文

posted @ 2011-09-22 19:10 More study needed. 阅读(475) 评论(0) 推荐(0) 编辑

2011年9月21日

Kruskal和map映射 解决POJ 2075

摘要: DescriptionYou are the owner of SmallCableCo and have purchased the franchise rights for a small town. Unfortunately, you lack enough funds to start your business properly and are relying on parts you have found in an old warehouse you bought. Among your finds is a single spool of cable and a lot of 阅读全文

posted @ 2011-09-21 11:10 More study needed. 阅读(241) 评论(0) 推荐(0) 编辑

Kruskal算法解决POJ 1251

摘要: DescriptionThe Head Elder of the tropical island of Lagrishan has a problem. A burst of foreign aid money was spent on extra roads between villages some years ago. But the jungle overtakes roads relentlessly, so the large road network is too expensive to maintain. The Council of Elders must choose t 阅读全文

posted @ 2011-09-21 09:25 More study needed. 阅读(306) 评论(0) 推荐(2) 编辑

2011年9月19日

映射在编程中的应用

摘要: 1.题目:判断断一个由a-z这26个字符组成的字符串中哪个字符出现的次数最多。#include<stdio.h>#include "string.h"int main(){ int n, Case[26], j, max; char str[1001]; scanf("%d", &n); for(int i=0; i<n; i++) { scanf("%s", str); memset(Case, 0, sizeof(Case)); for(j=0; j<strlen(str); j++) Case[s 阅读全文

posted @ 2011-09-19 22:23 More study needed. 阅读(552) 评论(0) 推荐(0) 编辑

2011年9月18日

CSS设置字体——异体和粗细

摘要: <1>.异体font-variant属性可以设定小型大写字母。小型大写字母不是一般的大写字母,也不是小写字母,这种字母采用不同大小的大写字母。 1 <html> 2 <head> 3 <style type="text/css"> 4 p.normal {font-variant:normal} 5 p.small {font-variant: small-caps} 6 </style> 7 </head> 8 9 <body>10 <p class="normal&quo 阅读全文

posted @ 2011-09-18 21:06 More study needed. 阅读(7546) 评论(0) 推荐(0) 编辑

CSS设置字体——系列和风格

摘要: 首先来了解一下CSS字体:通用字体系列前面讨论过,实际上相同的字体可能有很多不同的称呼,不过 CSS 迈出了勇敢的一步,力图帮助用户代理把这种混乱状况理清楚。我们所认为的“字体”可能有许多字体变形组成,分别用来描述粗体、斜体文本,等等。例如,你可能已经对字体 Times 很熟悉。不过,Times 实际上是多种变形的一个组合,包括 TimesRegular、TimesBold、TimesItalic、TimesOblique、TimesBoldItalic、TimesBoldOblique,等等。Times 的每种变形都是一个具体的字体风格(font face),而我们通常认为的 Times 是 阅读全文

posted @ 2011-09-18 20:08 More study needed. 阅读(3868) 评论(0) 推荐(0) 编辑

2011年9月17日

CSS设置文本——字母、单词、段落

摘要: <1>字母大小写 1 <html> 2 <head> 3 <style type="text/css"> 4 h1 {text-transform: uppercase} 5 p.uppercase {text-transform: uppercase} 6 p.lowercase {text-transform: lowercase} 7 p.capitalize {text-transform: capitalize} 8 </style> 9 </head>10 11 <body>12 阅读全文

posted @ 2011-09-17 22:36 More study needed. 阅读(329) 评论(0) 推荐(0) 编辑

CSS设置文本——对齐、修饰、缩进

摘要: <1>.对齐文本 1 <html> 2 <head> 3 <style type="text/css"> 4 h1 {text-align: center} 5 h2 {text-align: left} 6 h3 {text-align: right} 7 </style> 8 </head> 9 10 <body>11 <h1>这是标题 1</h1>12 <h2>这是标题 2</h2>13 <h3>这是标题 3</h3&g 阅读全文

posted @ 2011-09-17 21:21 More study needed. 阅读(1872) 评论(0) 推荐(0) 编辑

CSS设置文本——行间距

摘要: <1>.用比例设置行间距 1 <html> 2 <head> 3 <style type="text/css"> 4 p.small {line-height: 90%} 5 p.big {line-height: 200%} 6 </style> 7 </head> 8 9 <body>10 <p>11 这是拥有标准行高的段落。12 在大多数浏览器中默认行高大约是 110% 到 120%。13 这是拥有标准行高的段落。14 这是拥有标准行高的段落。15 这... 阅读全文

posted @ 2011-09-17 17:12 More study needed. 阅读(17152) 评论(0) 推荐(0) 编辑

导航

书山有径勤为路>>>>>>>>

<<<<<<<<学海无涯苦作舟!