码迷,mamicode.com
首页 >  
搜索关键字:poj 1338 ugly number    ( 46928个结果
Pat(Advanced Level)Practice--1063(Set Similarity)
Pat1063代码 题目描述: Given two sets of integers, the similarity of the sets is defined to be Nc/Nt*100%, where Nc is the number of distinct common numbers shared by the two sets, and Nt is the to...
分类:其他好文   时间:2014-04-29 13:44:20    阅读次数:325
POJ 1157 LITTLE SHOP OF FLOWERS (线性dp)
OJ题目:click here~~ 题目分析:f个束花,编号为1…… f。v个花瓶,编号为1 …… v。编号小的花束,所选花瓶的编号也必须比编号大的花束所选花瓶的编号小,即花i 选k, 花j选t ,如果i j , 则定有 k > t 。 每束花放在每个花瓶里有一个值。求f束花,能得到的最大值。 设dp[ i ][ j ] 为第 i 束花选择了第 j 个花瓶 , 则转移方程为 dp[ i ]...
分类:其他好文   时间:2014-04-29 13:36:20    阅读次数:278
Timus 1104. Don’t Ask Woman about Her Age题解
Mrs Little likes digits most of all. Every year she tries to make the best number of the year. She tries to become more and more intelligent and every year studies a new digit. And the number she make...
分类:其他好文   时间:2014-04-29 13:13:21    阅读次数:309
poj 2431 Expedition 贪心+最大堆
当油量不够时从走过的油站中选最大加油量的 #include #include #include #include using namespace std; #define MAX_N 10005 struct node{ int dist,fuel; }t[MAX_N]; bool cmp(const node &a,const node &b) { return a.dist<b.dis...
分类:其他好文   时间:2014-04-28 10:44:43    阅读次数:335
CallableStatement简单使用
直接上存储过程、函数 --执行不带参数但带返回值的存储过程 CREATE OR REPLACE PROCEDURE proc_getUserCount(v_totalCount OUT NUMBER) AS BEGIN SELECT COUNT(*) INTO v_totalCount FROM vote_user; END; --测试不带参数但带返回值的存储过程 DECLARE v_t...
分类:其他好文   时间:2014-04-28 10:25:43    阅读次数:461
poj 3468 A Simple Problem with Integers
A Simple Problem with Integers Time Limit: 5000MS   Memory Limit: 131072K Total Submissions: 55626   Accepted: 16755 Case Time Limit: 2000MS Description You have N...
分类:其他好文   时间:2014-04-28 10:23:41    阅读次数:282
poj 3264 Balanced Lineup
Balanced Lineup Time Limit: 5000MS   Memory Limit: 65536K Total Submissions: 32070   Accepted: 15090 Case Time Limit: 2000MS Description For the daily milking, Far...
分类:其他好文   时间:2014-04-27 22:44:53    阅读次数:302
poj 2912 Rochambeau(带权并查集 + 暴力)
题目:poj 2912 Rochambeau(带权并查集 + 暴力) 题目大意:题目给出三个团队和一个裁判,这三个团队和裁判一起玩剪刀石头布,然后规定每个团队必须出一样的,只有裁判可以任意出。然后给出关系,x > y 代表 x 赢y , x 解题思路:这题重点是裁判在里面会扰乱关系,并且n * m 才 100000,完全可以暴力。每次假设i是裁判,然后和裁判相关的关系都忽略,...
分类:其他好文   时间:2014-04-27 22:12:18    阅读次数:287
简洁的BP及RBF神经网络代码
BP神经网络 function [W,err]=BPTrain(data,label,hiddenlayers,nodes,type) %Train the bp artial nueral net work %input data,label,layers,nodes,type %data:dim*n %label:1*n %layers:m:number of hidden layers %...
分类:其他好文   时间:2014-04-27 21:48:00    阅读次数:460
POJ 2376 Cleaning Shifts 区间覆盖问题
给你一些区间的起点和终点,让你用最小的区间覆盖一个大的区间。...
分类:其他好文   时间:2014-04-27 21:34:59    阅读次数:287
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!