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
(1054)
POJ
1054
枚举【STL__binary_search()_的应用】
①使用binary_search前要先保证有序 ②binary_search函数仅返回true或false ③binary_search(first element, laste lment + 1, data to search) 1 #include <stdio.h> 2 #include <string.h> 3 #include <math
·
2015-11-10 23:31
search
Poj
1054
The Troublesome Frog / OpenJudge 2812 恼人的青蛙
id=
1054
http://bailian.openjudge.cn/practice/2812 2.题目: 总时间限制: 10000ms
·
2015-11-10 22:40
open
hdu
1054
Strategic Game 经典树形DP
Strategic Game Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 4061 Accepted Submission(s): 1791 Problem
·
2015-11-08 15:57
game
LightOJ
1054
Efficient Pseudo Code(约数和)
problem=
1054
题意:求n^m的约数和。 思路:约数和的公式:设n=p1^n1*p2^n2*p3^n3*……pk^nk。
·
2015-11-08 11:16
code
hihoCoder#
1054
滑动解锁
原题地址 回溯搜索 对于每个待枚举的点,检查: 1. 度数检查:是否违反了出度入度限制。因为生成的路径除了首尾节点外,其他节点的出度和入度只能为2 2. 共线检查:是否违反了共线条件。即跨越了尚未枚举过的节点 对于枚举产生的路径,检查: 1. 长度检查:长度是否大于等于4 2. 完整性检查:是否包含了片段中出现的所有边 代码: 1 #incl
·
2015-11-08 10:33
code
poj
1054
The Troublesome Frog
id=
1054
题意: 有一个r*c的方格,青蛙会以相同的向量v=(x,y)跳过,跳过的地方留下痕迹,青蛙在格子外哪里出发都有可能,问有最多有多少只青蛙; 思路: 先把点排序, 使其有序化, 然后枚举任意两点所在的直线
·
2015-11-05 09:01
poj
HDU
1054
Strategic Game(树形DP)
Strategic Game Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2925 Accepted Submission(s): 1222
·
2015-11-03 20:21
game
windows上放弃使用PyGTK
windows上放弃使用PyGTK - riag的专栏 - 博客频道 - CSDN.NET windows上放弃使用PyGTK 分类: python 2010-03-31 16:47
1054
·
2015-11-02 19:08
windows
hut
1054
Jesse's Code 解题报告
链接:http://oj.innlab.net/JudgeOnline/problem.php?id=1504 Description Jesse是个数学迷,他最喜欢研究“哥德巴赫猜想”,因此他的计算机密码也都采用素数。 但一直用同一个密码是不安全的,所以他要经常更换他的密码。但他只允许自己的密码中出现某些数字,且密码的每一位都不相同。比如1 2 4,则有6种情况124 142 214 241
·
2015-11-02 19:51
code
The Troublesome Frog--POJ
1054
1、题目类型:模拟、暴力法。 2、解题思路:(1)根据输入建立跳点的pos[]数组和标识位置的map[][]矩阵;(2)对跳点按照其横坐标进行排序;(3)暴力法遍历排序好的的跳点比较获得最大的步数,时间复杂度为nlog(n)。 3、注意事项:注意青蛙从区域的外面跳入,必须沿着直线方向跳出区域。 4、实现方法: #include < iostrea
·
2015-11-02 16:58
poj
hdu
1054
Strategic Game
简单树形dp! § 题目大意: § 一城堡的所有的道路形成一个n个节点的树,如果在一个节点上放上一个士兵,那么和这个节点相连的边就会被看守住,问把所有边看守住最少需要放多少士兵。 dproot[ i ] 表示以i为根的子树,在i上放置一个士兵,看守住整个子树需要多少士兵。 § all[ i ]表示看守住整个以i为根的子树需要
·
2015-11-02 15:15
game
POJ
1054
The Troublesome Frog
The Troublesome Frog Time Limit: 5000MS Memory Limit: 100000K Total Submissions: 9449 Accepted: 2823 Case Time Limit: 500MS Description In Korea, the naughtiness of t
·
2015-11-02 14:45
poj
HDU
1054
Strategic Game(二分图最小点覆盖)
Strategic Game Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2916 Accepted Submission(s): 1217
·
2015-11-02 13:15
game
hdu
1054
最小点覆盖
Sample Input 4 0:(1) 1 1:(2) 2 3 2:(0) 3:(0) 5 3:(3) 1 4 2 1:(1) 0 2:(0) 0:(0) 4:(0) Sample Output 1 2 最小点覆盖=最大匹配数 水题,懒的拍了 1 #include<stdio.h> 2
·
2015-11-02 12:20
HDU
HDOJ---
1054
Strategic Game[求最小顶点覆盖-无向图]
Strategic Game Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2892 Accepted Submission(s): 1206
·
2015-11-02 12:22
game
1054
: [HAOI2008]移动玩具 - BZOJ
Description在一个4*4的方框内摆放了若干个相同的玩具,某人想将这些玩具重新摆放成为他心中理想的状态,规定移动时只能将玩具向上下左右四个方向移动,并且移动的位置不能有玩具,请你用最少的移动次数将初始的玩具状态移动到某人心中的目标状态。Input前4行表示玩具的初始状态,每行4个数字1或0,1表示方格中放置了玩具,0表示没有放置玩具。接着是一个空行。接下来4行表示玩具的目标状态,每行4个数
·
2015-11-02 12:05
2008
BZOJ
1054
: [HAOI2008]移动玩具( BFS )
一开始没有注意答案为0的情况然后就WA了... 挺水的BFS.. ------------------------------------------------------------------------------ #include<cstdio> #include<cstring> #include<algorithm>
·
2015-11-02 12:35
2008
pku
1054
The Troublesome Frog 暴力+剪枝
id=
1054
题意: 给你r*c的一块稻田,每个点都种有水稻,青蛙们晚上会从水稻地里穿过并留下脚印,问题确保青蛙的每次跳跃的长度想相同,而且沿直线行走,给出n个青蛙的脚印点问存在大于等于
·
2015-11-02 11:15
pku
HDU
1054
Strategic Game(最小顶点覆盖数)
我们来先了解一下什么是最小顶点覆盖; 图G的顶点覆盖是一个顶点集合V,使得G中的每一条边都接触V中的至少一个顶点。我们称集合V覆盖了G的边。最小顶点覆盖是用最少的顶点来覆盖所有的边。顶点覆盖数是最小顶点覆盖的大小。 相应地,图G的边覆盖是一个边集合E,使得G中的每一个顶点都接触E中的至少一条边。 如果只说覆盖,则通常是指顶点覆盖,而不是边覆盖。 在二分图中 :最
·
2015-11-01 12:56
game
Discuz! X1.5 访问群组group.php页面提示数据库错误的解决方法
Error messages:[Type] 查询语句错误[
1054
] Unknown column 't.fid' in 'on clau
·
2015-10-31 10:53
discuz
hdu
1054
(最小顶点覆盖)
pid=
1054
思路:最小顶点覆盖 == 最大匹配(双向图)/2。。。不过一开始是用邻接矩阵,傻傻的TLE。。。然后搞了个vector,建立邻接表。。。
·
2015-10-31 08:46
HDU
hdu
1054
Strategic Game(tree dp)
Strategic Game Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 3806 Accepted Submission(s): 1672
·
2015-10-31 08:06
tree
hihoCoder #
1054
滑动解锁
#
1054
: 滑动解锁 Time Limit:2000ms Case Time Limit:1000ms Memory Limit:256MB Description 滑动解锁是智能手机一项常用的功能
·
2015-10-31 08:27
code
Lightoj
1054
- Efficient Pseudo Code
problem=
1054
题目大意: 给出n,m,问n^m的所有因子之和是多少?
·
2015-10-30 20:53
code
Cryptographic Equipment Assessment Laboratory (CEAL) CEAL Example: Finite State Model
The CryptoGarage 900 Design Document
1054
-4 Finite State Model (FSM) CygnaCom Solutions Revision 0.1
·
2015-10-30 20:19
example
HDU
1054
Strategic Game
Strategic Game Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3580 Accepted Submission(s): 1573
·
2015-10-30 12:18
game
hdoj
1054
Strategic Game【匈牙利算法+最小顶点覆盖】
Strategic Game Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5783 Accepted Submission(s): 2677
·
2015-10-30 10:06
game
POJ
1054
The Troublesome Frog (hash散列)
The Troublesome Frog Time Limit: 5000MS Memory Limit: 100000K Total Submissions: 9126 Accepted: 2749 Case Time Limit: 500MS Description In Ko
·
2015-10-28 09:46
hash
HDU-
1054
Strategic Game Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5444 Accepted Submission(s): 2520
·
2015-10-28 08:36
HDU
1054
: [HAOI2008]移动玩具
1054
:[HAOI2008]移动玩具TimeLimit: 10Sec MemoryLimit: 162MBSubmit: 1514 Solved: 826[Submit][Status][Discuss
CRZbulabula
·
2015-10-27 22:00
VC6.0和VS2010转换时经常遇到的问题
include "minmax.h" 2、c:\documents and settings\administrator\桌面\liuyu\liuyu\cdib.cpp(
1054
·
2015-10-27 14:09
VS2010
九度OJ 1110:小白鼠排队 (排序)
时间限制:1秒内存限制:32兆特殊判题:否提交:1734解决:
1054
题目描述:N只小白鼠(1 #include #defineN100 #defineLEN10 structmouse{ intweight
thudaliangrx
·
2015-10-23 17:00
排序
C语言
OJ
九度
open-falcon
/home/work/open-falcon/dashboard/env/lib/python2.6/site-packages/pkg_resources.py:
1054
:UserWarning:/root
lee_ypp
·
2015-10-23 14:00
POJ-
1054
The Troublesome Frog 搜索+剪枝 Or DP+Hash
搜索+剪枝 #include <cstdlib> #include <cstring> #include <cstdio> #include <algorithm> #include <iostream> #define MAXN 5005 using namespace std; /* 题意: 给定一个
·
2015-10-23 08:04
hash
九度OJ
1054
:字符串内排序 (排序)
时间限制:1秒内存限制:32兆特殊判题:否提交:7949解决:4343题目描述:输入一个字符串,长度小于等于200,然后将输出按字符顺序升序排序后的字符串。输入:测试数据有多组,输入字符串。输出:对于每组输入,输出处理后的结果。样例输入:bacd样例输出:abcd来源:2010年哈尔滨工业大学计算机研究生机试真题思路:基本的排序。代码:#include #include intmain(void
thudaliangrx
·
2015-10-21 20:00
排序
C语言
OJ
九度
ACM HDU 1283 最简单的计算机(简单水题)
65536/32768 K (Java/Others)Total Submission(s): 1781 Accepted Submission(s):
1054
·
2015-10-21 12:01
ACM
HDU
1054
Strategic Game (树形DP)
#include #defineMAX_NODES1500 #defineMIN(x,y)((x)<(y)?(x):(y)) intnumOfNodes; introot; intnumOfRoads; typedefstructRoad{ intto; intnext; }Road; RoadRoadArray[MAX_NODES*MAX_NODES+1]; intRoadNum; inthe
tiutiu2011
·
2015-10-19 14:00
dp
game
HDU
树形
1054
Strategic
修改mysql用户密码之后 phpmyadmin报
1054
错误
解决方法:方法很简单,找到wamp下的config.inc.php我的路径是 D:\programfiles\wamp\apps\phpmyadmin4.1.14\config.inc.php 打开 config.inc.php 找到$cfg['Servers'][$i]['password']='123456';
zrc1003
·
2015-10-19 10:42
mysql
wamp
BZOJ
1054
[HAOI]移动玩具|状态压缩SPFA
Description在一个4*4的方框内摆放了若干个相同的玩具,某人想将这些玩具重新摆放成为他心中理想的状态,规定移动时只能将玩具向上下左右四个方向移动,并且移动的位置不能有玩具,请你用最少的移动次数将初始的玩具状态移动到某人心中的目标状态。Input前4行表示玩具的初始状态,每行4个数字1或0,1表示方格中放置了玩具,0表示没有放置玩具。接着是一个空行。接下来4行表示玩具的目标状态,每行4个数
Genskyuine
·
2015-10-13 20:48
BZOJ题解
求二分图点权最小覆盖的一类问题 HDU
1054
1565 1569
关于求二分图最小点权覆盖的问题。它的姐妹问题是二分图的最小顶点覆盖,可以做二分图最大匹配。而关于最小点权覆盖我们可以用以下的方法解决。建立超级源点和超级汇点,将一侧的点和源点连边,边的权值为点的权值,汇点一侧同理。将两侧点之间的边权值改为inf,之后做最大流。最大流的结果即为最小点权覆盖。附HDU1569代码#include #include #include #include #include
qq919017553
·
2015-10-03 23:00
Win10专业版开启Spotlight锁屏:附开启方法
现在,随着Build
1054
佚名
·
2015-09-21 08:50
#
1054
: 滑动解锁
描述滑动解锁是智能手机一项常用的功能。你需要在3x3的点阵上,从任意一个点开始,反复移动到一个尚未经过的"相邻"的点。这些划过的点所组成的有向折线,如果与预设的折线在图案、方向上都一致,那么手机将解锁。两个点相邻当且仅当以这两个点为端点的线段上不存在尚未经过的点。此外,这条折线还需要至少经过4个点。为了描述方便,我们给这9个点从上到下、从左到右依次编号1-9。那么1->2->3是不合法的,因为长度
KJBU2
·
2015-09-06 20:00
九度题目
1054
:字符串内排序
题目描述: 输入一个字符串,长度小于等于200,然后将输出按字符顺序升序排序后的字符串。输入: 测试数据有多组,输入字符串。输出: 对于每组输入,输出处理后的结果。样例输入: bacd样例输出: abcd题目分析: 首先,将得到的额字符串一一分解,用String类的charAt()方法得到每一个字符,将这些得到的字符放进我们创建的字符数组,然后再在字符数组里面排序,每个字符都有
xflcx1991
·
2015-08-31 19:00
java
算法
九度OJ
zzuli OJ
1054
: 猴子吃桃
Description悟空第一天摘下桃子若干,当即吃掉一半,还不过瘾,又多吃一个,第二天又将剩下的桃子吃掉一半多一个,以后每天吃掉前一天剩下的一半多一个,到第n天准备吃的时候只剩下一个桃子。聪明的你,请帮悟空算一下,他第一天开始吃的时候桃子一共有多少个呢?Input输入一个数n(1 intmain() { inti,n; intsum; scanf("%d",&n); sum=1; for(
sinat_25926481
·
2015-08-28 16:00
c
算法
C语言
ACM
【图论】[ZOJ
1054
]Place the Robots
题目分析:二分图匹配,和ZOJ1052差不多,但是草地在计算连通块是当做空地,在连边是如果交点是草地则不连边。代码:#include #include #defineMAXN50 intn,a[MAXN+10][MAXN+10],cnt,cnt1,c[MAXN*MAXN*2+10],ans,T,m; chars[MAXN+10][MAXN+10]; boolvis[MAXN*MAXN*2+10];
outer_form
·
2015-08-26 20:00
C++
图论
二分图
noip
HDU
1054
Strategic Game (最小顶点覆盖)
ProblemDescriptionBobenjoysplayingcomputergames,especiallystrategicgames,butsometimeshecannotfindthesolutionfastenoughandthenheisverysad.Nowhehasthefollowingproblem.Hemustdefendamedievalcity,theroadso
Misdom_Tian_Ya
·
2015-08-26 17:00
mysql 错误注意事项
mysql>UPDATEuserSETPassword=PASSWORD(’654321’)whereUSER=’root’; ERROR
1054
(42S22):Unknowncolumn'’root’
u010270403
·
2015-08-26 00:00
mysql
HDU 5137:How Many Maos Does the Guanxi Worth【Floyd】
HowManyMaosDoestheGuanxiWorthTimeLimit:2000/1000MS(Java/Others) MemoryLimit:512000/512000K(Java/Others)TotalSubmission(s):
1054
lin14543
·
2015-08-24 14:00
图论
最短路
HDU
floyd
BZOJ
1054
[HAOI2008]移动玩具
1054
:[HAOI2008]移动玩具TimeLimit: 10Sec MemoryLimit: 162MBSubmit: 1388 Solved: 764[Submit][Status][Discuss
AI_Believer
·
2015-08-17 11:00
九度 Online Judge 算法 刷题 题目
1054
:字符串内排序
题目
1054
:字符串内排序题目描述:输入一个字符串,长度小于等于200,然后将输出按字符顺序升序排序后的字符串。输入:测试数据有多组,输入字符串。输出:对于每组输入,输出处理后的结果。
never_cxb
·
2015-08-14 18:00
算法
面试
计算机
程序
笔试
上一页
10
11
12
13
14
15
16
17
下一页
按字母分类:
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
其他