Fatal error: Maximum execution time of 30
seconds exceeded inC:\Program Files\Apache Software
Foundation\Apache2.2\htdocs\code\curl\work\work3.phpon l...
分类:
其他好文 时间:
2014-05-07 16:53:31
阅读次数:
338
题目链接 Find the contiguous subarray within an array
(containing at least one number) which has the largest sum. For example, given
the array [?2,1,?3,4,...
分类:
其他好文 时间:
2014-05-07 16:42:42
阅读次数:
287
题目如下:
The Dole Queue
In a serious attempt to downsize (reduce) the dole queue, The NewNational Green Labour Rhinoceros Party has decided on the followingstrategy. Every day ...
分类:
其他好文 时间:
2014-05-07 15:46:40
阅读次数:
235
题目链接:点击打开链接
题意:rt
思路:从最低位开始构造,若x位的平方数是自身则继续构造。
mark:
#pragma comment(linker, "/STACK:1024000000,1024000000")
#include
#include
#include
#include
#include
#include
#include
#include
#include
#inc...
分类:
其他好文 时间:
2014-05-07 11:59:23
阅读次数:
303
题目连接:uva 1534 - Taekwondo
题目大意:...
分类:
其他好文 时间:
2014-05-07 11:50:55
阅读次数:
207
IPMSM的电磁转矩方程为:IPMSM的d轴电感Ld小于q轴电感Lq,所以负的d轴电流可以增加电机磁阻转矩分量。最大转矩电流比(maximum
torque per ampere, MTPA)控制方法的优点就是在基速以下的恒转矩区根据给定的转矩控制使得定子电流的幅值最小。上述问题就可以等效为,
以上...
分类:
其他好文 时间:
2014-05-07 02:22:57
阅读次数:
420
题目连接:uva 11578 - Situp Benches
题目大意:健身房有两个仪器,初始角度为10度,每次有人使用需要交15元,每调10度需要花费10元,现在有n个人,给出每个人使用仪器的顺序和角度,保证不会同时有大于2个人序号一样,求最小花费,并且输出每个人分别使用哪一个仪器,并且所有人使用结束后,要将仪器调回10度。
解题思路:dp[i][x][y]表示第i个人,一个...
分类:
其他好文 时间:
2014-05-06 22:54:40
阅读次数:
361
题目链接:10641 - Barisal Stadium
题意:顺时针给定n个点,在给m个灯,每个灯有一个花费,要求最小花费使得所有边能被灯照到
思路:用向量叉积判断向量的顺逆时针关系,从而预处理出每个灯能照到的边,然后由于n个点是环的,所以可以直接扩大两倍,dp时候去枚举起点即可
状态为dp[i]表示现在照到i条边之前的边全部照亮需要的最小花费
代码:
#include
#inclu...
分类:
其他好文 时间:
2014-05-06 21:40:48
阅读次数:
304
题目链接:uva 10981 - String Morphing
题目大意:...
分类:
其他好文 时间:
2014-05-06 21:14:55
阅读次数:
364