0 mmmd什么意思

尚未进行身份认证

暂无相关简介

等级
TA的排名 24w+

排位赛1-I Where Am I?

排位赛1-I Where Am I?题目Farmer John has gone out for a walk down the road and thinks he may now be lost! Along the road there are N farms (1≤N≤100) in a row. Farms unfortunately do not have house number...

2020-02-21 18:58:53

排位赛1-G Livestock Lineup

排位赛1-G Livestock Lineup题目Every day, Farmer John milks his 8 dairy cows, named Bessie, Buttercup, Belinda, Beatrice, Bella, Blue, Betsy, and Sue. The cows are rather picky, unfortunately, and require...

2020-02-21 18:53:35

排位赛1-E Milk Visits

排位赛1-E Milk Visits题目Farmer John is planning to build N farms that will be connected by N−1 roads, forming a tree (i.e., all farms are reachable from each-other, and there are no cycles). Each farm ...

2020-02-21 18:22:41

排位赛1-D Meetings

排位赛1-D Meetings题目Two barns are located at positions 0 and L on a one-dimensional number line. There are also N cows at distinct locations on this number line (think of the barns and cows effective...

2020-02-21 18:12:50

排位赛1-B MooBuzz

排位赛1-B MooBuzz题目Farmer John’s cows have recently become fans of playing a simple number game called “FizzBuzz”. The rules of the game are simple: standing in a circle, the cows sequentially count up...

2020-02-21 17:55:24

排位赛1-A Cow Gymnastics

排位赛1-A Cow Gymnastics题目In order to improve their physical fitness, the cows have taken up gymnastics! Farmer John designates his favorite cow Bessie to coach the N other cows and to assess their pro...

2020-02-21 17:46:58

Til the Cows Come Home/最短路

Til the Cows Come Home/最短路题目Bessie is out in the field and wants to get back to the barn to get as much sleep as possible before Farmer John wakes her for the morning milking. Bessie needs her beaut...

2020-01-16 11:31:17

畅通工程再续/HDOJ 1875

畅通工程再续/HDOJ 1875题目相信大家都听说一个“百岛湖”的地方吧,百岛湖的居民生活在不同的小岛中,当他们想去其他的小岛时都要通过划小船来实现。现在政府决定大力发展百岛湖,发展首先要解决的问题当然是交通问题,政府决定实现百岛湖的全畅通!经过考察小组RPRush对百岛湖的情况充分了解后,决定在符合条件的小岛间建上桥,所谓符合条件,就是2个小岛之间的距离不能小于10米,也不能大于1000米。...

2020-01-16 11:26:32

畅通工程续/HDOJ 1874/最短路

畅通工程续/HDOJ 1874/最短路题目某省自从实行了很多年的畅通工程计划后,终于修建了很多路。不过路多了也不好,每次要从一个城镇到另一个城镇时,都有许多种道路方案可以选择,而某些方案要比另一些方案行走的距离要短很多。这让行人很困扰。现在,已知起点和终点,请你计算出要从起点到终点,最短需要行走多少距离。题目来源:HDOJ 1874题目链接解法最短路的模板题,我用的是spfa。代码...

2020-01-16 11:18:23

还是畅通工程/HDU 123

还是畅通工程/HDU 1233题目某省调查乡村交通状况,得到的统计表中列出了任意两村庄间的距离。省政府“畅通工程”的目标是使全省任何两个村庄间都可以实现公路交通(但不一定有直接的公路相连,只要能间接通过公路可达即可),并要求铺设的公路总长度为最小。请计算最小的公路总长度。题目来源:HDU 1233题目链接解法模板题,最小生成树。代码:#include <stdio.h>...

2020-01-16 11:15:57

畅通工程/HDOJ 1232

MaratonIME gets candies/Gym - 101375H/二分+交互题目某省调查城镇交通状况,得到现有城镇道路统计表,表中列出了每条道路直接连通的城镇。省政府“畅通工程”的目标是使全省任何两个城镇间都可以实现交通(但不一定有直接的道路相连,只要互相间接通过道路可达即可)。问最少还需要建设多少条道路?题目来源:HDU 1232题目链接解法n个城镇间能互相连通最少需要n-...

2020-01-16 11:07:24

Arctic Network/POJ 2349/最小生成树

Arctic Network/POJ 2349/最小生成树题目The Department of National Defence (DND) wishes to connect several northern outposts by a wireless network. Two different communication technologies are to be used in ...

2020-01-16 11:03:09

六度分离/HDOJ 1869

六度分离/HDOJ 1869题目1967年,美国著名的社会学家斯坦利·米尔格兰姆提出了一个名为“小世界现象(small world phenomenon)”的著名假说,大意是说,任何2个素不相识的人中间最多只隔着6个人,即只用6个人就可以将他们联系在一起,因此他的理论也被称为“六度分离”理论(six degrees of separation)。虽然米尔格兰姆的理论屡屡应验,一直也有很多社会学...

2020-01-16 10:50:43

最短路/HDOJ 2544

最短路/HDOJ 2544题目在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t-shirt。但是每当我们的工作人员把上百件的衣服从商店运回到赛场的时候,却是非常累的!所以现在他们想要寻找最短的从商店到赛场的路线,你可以帮助他们吗?题目来源:HDOJ 2544题目链接解法模板题,直接跑最短路即可,Dijkstra或SPFA都可以,我用的是spfa。代码:#include &l...

2020-01-16 10:47:06

Cow Contest/POJ 3660

Cow Contest/POJ 3660题目N (1 ≤ N ≤ 100) cows, conveniently numbered 1…N, are participating in a programming contest. As we all know, some cows code better than others. Each cow has a certain constant ...

2020-01-16 10:42:54

Expanding Rods/POJ - 1905/二分答案

Expanding Rods/POJ - 1905/二分答案题目When a thin rod of length L is heated n degrees, it expands to a new length L’=(1+n*C)*L, where C is the coefficient of heat expansion.When a thin rod is mounted on...

2020-01-15 11:59:09

Aggressive cows/二分答案

Aggressive cows/二分答案题目农夫 John 建造了一座很长的畜栏,它包括NN (2 <= N <= 100,000)个隔间,这些小隔间依次编号为x1,…,xN (0 <= xi <= 1,000,000,000). 但是,John的C (2 <= C <= N)头牛们并不喜欢这种布局,而且几头牛放在一个隔间里,他们就要发生争斗。为了不让牛互相...

2020-01-15 11:45:02

MaratonIME gets candies/Gym - 101375H/二分+交互

MaratonIME gets candies/Gym - 101375H/二分+交互题目Obs: this is an interactive problem. More information is under the “Interaction” section.MaratonIME is gathering to start another group practice. This t...

2020-01-15 11:36:36

Find The Multiple/POJ 1426/DFS

Find The Multiple/POJ 1426/DFS题目给定一个正整数n,请编写一个程序来寻找n的一个非零的倍数m,这个m应当在十进制表示时每一位上只包含0或者1。你可以假定n不大于200且m不多于100位。题目来源:POJ 1426题目链接解法虽然题目说是m不多于100位,但其实20位就足够了,所以我们直接用DFS暴搜来枚举m即可。代码:#include <st...

2020-01-15 11:27:59

Accepted Necklace/HDU 2660/DFS

Accepted Necklace/HDU 2660/DFS题目I have N precious stones, and plan to use K of them to make a necklace for my mother, but she won’t accept a necklace which is too heavy. Given the value and the weig...

2020-01-15 11:20:59

查看更多

勋章 我的勋章
  • 持之以恒
    持之以恒
    授予每个自然月内发布4篇或4篇以上原创或翻译IT博文的用户。不积跬步无以至千里,不积小流无以成江海,程序人生的精彩需要坚持不懈地积累!
  • 勤写标兵Lv4
    勤写标兵Lv4
    授予每个自然周发布9篇以上(包括9篇)原创IT博文的用户。本勋章将于次周周三上午根据用户上周的博文发布情况由系统自动颁发。