E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
pupil
HDU5285.wyh2000 and
pupil
如果a不认识b,那么在a,b间连一条边,这样有解当且仅当这张图是二分图。由于可能有多个二分图,而题目要求第一组的人尽可能多,所以贪心的选择即可。要注意m=0和n #include #include #include #include #include #include #include #include #include #include #include #include usingnamesp
acm_fighting
·
2015-07-27 17:00
hdu 5285 wyh2000 and
pupil
(二染色)
第一次用vector解得题,值得纪念,这道题是二染色问题,我用bfs解得,就是染色,判断,计数问题,其实挺简单的,就是得判一下特殊情况,当n #include #include #include #include #include usingnamespacestd; intvisit[100005]; intn,m,flag,ans1,ans2; vectorv[100005]; intbfs(
sinat_22659021
·
2015-07-23 20:00
HDU 5285:wyh2000 and
pupil
wyh2000andpupil Accepts:93 Submissions:925 TimeLimit:3000/1500MS(Java/Others) MemoryLimit:131072/65536K(Java/Others)问题描述青年理论计算机科学家wyh2000在教导他的小学生。 共有 n 个小学生,编号为 1−n 。为了增加小学生之间的凝聚力,wyh2000决定将所有小学生
u010885899
·
2015-07-20 19:00
HDU
HDU 5285 wyh2000 and
pupil
(dfs或种类并查集)
wyh2000andpupilTimeLimit:3000/1500MS(Java/Others) MemoryLimit:131072/65536K(Java/Others)TotalSubmission(s):755 AcceptedSubmission(s):251ProblemDescriptionYoungtheoreticalcomputerscientistwyh2000
kalilili
·
2015-07-20 11:00
hdu5285 wyh2000 and
pupil
对图染色,如果相邻的边染色一样,那么说明错误,输出那个不可能的字符串否则输出最大的那组人数个最小的那组人数特判:m==0 和 最大那组人数为n的时候注意:杭电后台使用的是windows,会爆栈最好用一下:#pragmacomment(linker,"/STACK:1024000000,1024000000") 具体解释请看这篇文章 http://bbs.byr.cn/#!article/ACM_I
u013076044
·
2015-07-19 20:00
HDU 5285 wyh2000 and
pupil
ProblemDescriptionYoungtheoreticalcomputerscientistwyh2000isteachinghispupils.Wyh2000hasnpupils.Idofthemarefrom 1 to n.Inordertoincreasethecohesionbetweenpupils,wyh2000decidetodividetheminto2groups.Ea
jtjy568805874
·
2015-07-18 23:00
HDU
hdu 5285 wyh2000 and
pupil
和hdu4751类似。判断是否是二分图就好了,同时统计一下两组的人数,要使第一组的人数尽可能大,每次染色的时候取较大值相加即可。坑点:1、n #include #include #include #include usingnamespacestd; vectorG[100005]; intcolor[100005],a[3]; booljudge(intu) { for(inti=0;i>t;
u014679804
·
2015-07-18 22:00
二分图判定 hdu5285 wyh2000 and
pupil
很明显要求一个二分图。先构图,然后用精典的点染色的方法,求出二分图中两个图的节点数量因为整个图中有很多个通块,每个通块都做一次二分图合并的时候,把每个二分图中节点多的那部分的数量累加,就得到了a答案那么b就是总数减去a这题本身不难,但是数据非常贱,题目要求每组中必须有一个人,且m可能为0所以,要进行两个特判n #include #include #include #include #include
qwb492859377
·
2015-07-18 22:00
java方法的重载和覆盖
; } } class
Pupil
extends Stu{//小学生 publ
宋哥陈
·
2014-12-06 16:00
覆盖
重载
java方法
java面向对象特性_继承
; } } class
Pupil
{//小学生 private String name;
宋哥陈
·
2014-12-06 16:00
java
继承
面向对象特性
hp ilo
HP iLO使用指南 /by
pupil
2010.06.19 iLO(Integrated Lights-Out)、iLO2、iLO3卡是HP
aiape
·
2014-03-16 03:00
HP
CF197#DIV2:A-Helpful Maths
AXeniathebeginnermathematicianisathirdyearstudentatelementaryschool.Sheisnowlearningtheadditionoperation.Theteacherhaswrittendownthesumofmultiplenumbers.
Pupil
libin56842
·
2013-08-27 09:00
CF
oslo渐晕分析源代码(二)
#definePRECISION1e-9 staticint vigchk(doublemax_
pupil
) //hlp:OSLOPremium/OSLOStandard //hlp:Routinetofindfractionalvignettingfactors
strategycn
·
2012-12-10 18:00
JavaScript(07): 实例3---Google Eye
GoogleEye #l_
pupil
,#r_
pupil
{ position:relative;/*thepositionofpupilisrelativetoitscontainereye*/ width
jackfrued
·
2012-08-18 00:00
JavaScript
function
border
browser
distance
google眼睛的实现
没事写的.js实现眼睛随鼠标运动.就是眼睛一直盯着鼠标看.图片:
pupil
: eye-r: eye-y: 就是三图片.
老Man
·
2012-03-30 17:00
Google眼睛
【EXLIBRIS】#小词旮旯# 005
Pupil
Pupil
是未成年的小孩子和小学生,同时还指人的瞳孔。要说这两个词义有任何关联的话就是‘小人’,当然是不含贬义的,纯粹说的是大小。
井上冰
·
2011-04-27 13:00
C#的XML序列化和反序列化1
阅读更多3.1从可串行化的类中定制XML串行化1.格式化XML文档元素[XmlRoot(ElementName="
Pupil
",Namespace="urn:MyNamespace")]publicclassStudent
bluedusk
·
2010-10-14 09:00
XML
C
C++
C#
C#的XML序列化和反序列化1
3.1从可串行化的类中定制XML串行化 1.格式化XML文档元素 [XmlRoot(ElementName="
Pupil
",Namespace="urn:MyNamespace")]
bluedusk
·
2010-10-14 09:00
C++
c
xml
C#
oral english
Like teacher, like
pupil
. 什么样的老师教什么样的学生。 Like tree, like fruit. 羊毛出在羊身上。
狂放不羁
·
2007-07-04 11:00
.net
asp.net
asp
sun
oral english
Like teacher, like
pupil
. 什么样的老师教什么样的学生。 Like tree, like fruit. 羊毛出在羊身上。
狂放不羁
·
2007-07-04 11:00
.net
asp.net
asp
sun
oral english
Like teacher, like
pupil
. 什么样的老师教什么样的学生。 Like tree, like fruit. 羊毛出在羊身上。
狂放不羁
·
2007-07-04 11:00
.net
asp.net
asp
sun
上一页
1
2
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他