算法学习(一)-----朱流算法

前言 最近的学习,深深地感受到了算法分享的重要性。 应队友的要求,写一篇简单易懂的算法讲解(希望我写的出来),深入浅出(磨磨唧唧)的讲解一下朱刘算法。什么是朱刘算法大家应该都知道,如何求解最小生成树,可以使用Prim, 也可以使用Kruskal, 总而言之,就是寻找使得所有节点连通的权值最...

2017-11-25 22:07:57

阅读数:153

评论数:0

E - Super Jumping! Jumping! Jumping!

Nowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and know little about this...

2017-11-17 09:37:58

阅读数:113

评论数:0

1007. Maximum Subsequence Sum (25)

Maximum Subsequence Sum (25) Given a sequence of K integers { N1, N2, …, NK }. A continuous subsequence is defined to be { Ni, Ni+1, …, Nj } where 1 ...

2017-11-17 09:35:28

阅读数:93

评论数:0

**1006. Sign In and Sign Out (25)**

1006. Sign In and Sign Out (25)At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one ...

2017-11-15 09:52:01

阅读数:134

评论数:0

M. Quadcopter Competition

M. Quadcopter Competition time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard outputPolyca...

2017-11-15 09:36:43

阅读数:114

评论数:0

1005. Spell It Right (20)

Spell It Right (20) Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in Engl...

2017-11-15 09:07:15

阅读数:92

评论数:0

1002. A+B for Polynomials (25)

A+B for Polynomials (25) This time, you are supposed to find A+B where A and B are two polynomials.InputEach input file contains one test case. Each ...

2017-11-14 18:49:25

阅读数:112

评论数:0

1001. A+B Format (20)(PAT)

A+B Format (20) Calculate a + b and output the sum in standard format – that is, the digits must be separated into groups of three by commas (unless ...

2017-11-14 18:24:44

阅读数:111

评论数:0

H - Transfer water (不定根)

XiaoA lives in a village. Last year flood rained the village. So they decide to move the whole village to the mountain nearby this year. There is no ...

2017-11-08 08:59:15

阅读数:135

评论数:0

G - Ice_cream’s world II (朱刘算法+不定根)

After awarded lands to ACMers, the queen want to choose a city be her capital. This is an important event in ice_cream world, and it also a very diff...

2017-11-06 13:20:23

阅读数:155

评论数:0

F - Teen Girl Squad(朱刘算法)

F - Teen Girl Squad 题目主要是最小树形图, 用朱刘算法求解。#include <cstdio> #include <cmath> #include <cstring> #include <algorithm> using nam...

2017-11-06 10:30:43

阅读数:145

评论数:0

E - Command Network (朱刘算法)

After a long lasting war on words, a war on arms finally breaks out between littleken’s and KnuthOcean’s kingdoms. A sudden and violent assault by Kn...

2017-11-04 15:40:16

阅读数:135

评论数:0

F - Four Operations(考虑全面)

Little Ruins is a studious boy, recently he learned the four operations!Now he want to use four operations to generate a number, he takes a string wh...

2017-11-03 14:23:54

阅读数:125

评论数:0

A - ArcSoft's Office Rearrangement(万恶的long long)

ArcSoft, Inc. is a leading global professional computer photography and computer vision technology company.There are N working blocks in ArcSoft comp...

2017-11-03 09:01:05

阅读数:140

评论数:0

D - Is There A Second Way Left? (次小生成树)

D - Is There A Second Way Left? Sample Input 4 5 4 1 2 5 3 2 5 4 2 5 5 4 5 5 3 1 2 5 3 2 5 5 4 5 5 5 1 2 5 3 2 5 4 2 5 5 4 5 4 5 6 ...

2017-11-01 21:20:08

阅读数:157

评论数:0

B - More Cowbell

Kevin Sun wants to move his precious collection of n cowbells from Naperthrill to Exeter, where there is actually grass instead of corn. Before movin...

2017-11-01 21:02:09

阅读数:260

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭