码迷,mamicode.com
首页 >  
搜索关键字:lightoj    ( 714个结果
Lightoj 1019 - Brush (V)
算出从点1到点n的最短路径。 ...
分类:其他好文   时间:2016-06-24 01:31:19    阅读次数:135
LightOJ 1336 Sigma Function(数论 整数拆分推论)
》题意:给一个函数的定义,F(n)代表n的所有约数之和,并且给出了整数拆分公式以及F(n)的计算方法,对于一个给出的N让我们求1 - N之间有多少个数满足F(x)为偶数的情况,输出这个数。 》分析:来考虑F(x)为奇数的情况,给据题目中给我们的公式,,如果F(x)为奇数,那么这个多项式里面的任何一项 ...
分类:其他好文   时间:2016-06-17 16:56:30    阅读次数:170
Lightoj 1012 - Guilty Prince
bfs遍历一遍就行了。 ...
分类:其他好文   时间:2016-06-15 20:34:06    阅读次数:154
Lightoj 1011 - Marriage Ceremonies
You work in a company which organizes marriages. Marriages are not that easy to be made, so, the job is quite hard for you. The job gets more difficul ...
分类:其他好文   时间:2016-06-15 08:01:53    阅读次数:320
LightOJ 1370 Bi-shoe and Phi-shoe(欧拉函数)
题意:题目给出一个欧拉函数值F(X),让我们求>=这个函数值的最小数N,使得F(N) >= F(X); 分析:这个题目有两种做法。第一种,暴力打出欧拉函数表,然后将它调整成有序的,再建立一个新的表格记录满足条件的最小的欧拉值。 第二种,根据欧拉函数的性质,针对一个素数N,F(N) = N-1; 然后 ...
分类:其他好文   时间:2016-06-14 13:56:56    阅读次数:120
[LightOJ1017]Brush (III)(dp)
题目链接:http://lightoj.com/volume_showproblem.php?problem=1017 题意:给你一个无限大的平面(2D)上面有N个 点,一个宽w的刷子,最多使用k次,每次使用只能横着水平刷一次。问刷k次后刷过的地方最多可以覆盖多少个点。 思路:其实读完题就知道这个题 ...
分类:其他好文   时间:2016-06-13 01:19:08    阅读次数:168
[LightOJ1004]Monkey Banana Problem(dp)
题目链接:http://lightoj.com/login_main.php?url=volume_showproblem.php?problem=1004 题意:数塔的变形,上面一个下面一个,看清楚了直接做就行了。 上半部分转移方程dp(i,j)=max(dp(i-1,j),dp(i-1,j+1) ...
分类:其他好文   时间:2016-06-13 01:05:39    阅读次数:155
Lightoj 1007 - Mathematically Hard
1007 - Mathematically Hard PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 64 MB Mathematically some problems look hard. But with ...
分类:其他好文   时间:2016-06-10 20:17:33    阅读次数:201
lightoj 1118 Incredible Molecules 圆面积求交,模板
看了kuangbin神的版子,自己的都不敢往上贴了。。。 #include <cstdio>#include <cstring>#include <algorithm>#include <cstdlib>#include <iostream>#include <vector>#include <cm ...
分类:其他好文   时间:2016-06-10 13:43:27    阅读次数:162
Lightoj 1006 Hex-a-bonacci
Given a code (not optimized), and necessary inputs, you have to find the output of the code for the inputs. The code is as follows: int a, b, c, d, e, ...
分类:其他好文   时间:2016-06-10 12:21:41    阅读次数:202
714条   上一页 1 ... 37 38 39 40 41 ... 72 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!