码迷,mamicode.com
首页 >  
搜索关键字:lightoj    ( 714个结果
lightoj 1030 Discovering Gold[ 期望 ]
B - Discovering Gold Description You are in a cave, a long cave! The cave can be represented by a 1 x N grid. Each cell of the cave can contain any amount of gold. Initially you are in positi...
分类:其他好文   时间:2015-05-05 08:54:20    阅读次数:129
LightOJ - 1220
Mysterious BacteriaTime Limit: 500MSMemory Limit: 32768KB64bit IO Format: %lld & %lluDescriptionDr. Mob has just discovered a Deathly Bacteria. He nam...
分类:其他好文   时间:2015-05-03 22:02:02    阅读次数:200
LightOJ - 1234
Harmonic NumberTime Limit: 3000MSMemory Limit: 32768KB64bit IO Format: %lld & %lluDescriptionIn mathematics, the nth harmonic number is the sum of the...
分类:其他好文   时间:2015-05-03 21:52:07    阅读次数:129
LightOJ Beginners Problems 部分题解
相关代码请戳 https://coding.net/u/tiny656/p/LightOJ/git 1006 Hex-a-bonacci. 用数组模拟记录结果,注意取模 1008 Fibsieve's Fantabulous Birthday. 找规律题,左边列是1 3平方 5平方......下边行...
分类:其他好文   时间:2015-05-02 12:24:05    阅读次数:172
LightOj 1197 Help Hanzo (区间素数筛选)
题目大意: 给出T个实例,T 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 #define maxn 50000 9 int vis[maxn], isprime[5200], num[100005].....
分类:其他好文   时间:2015-04-28 15:39:48    阅读次数:204
LightOJ 1109 - False Ordering (因式分解)
1109 - False OrderingPDF (English)StatisticsForumTime Limit:1 second(s)Memory Limit:32 MBWe definebis a Divisor of a numberaifais divisible byb. So, t...
分类:其他好文   时间:2015-04-27 14:44:35    阅读次数:125
lightoj 1336 Sigma Function
题目大意: δ(n)表示n的所有因子的和,给一个数n,求[1,n]之间的数x,满足δ(x)是偶数的x有多少个。解题思路: 想来想去,没有思路,只感觉和2这个因子有关,看大家都做出来了,感觉题目不应该太难,于是打标看了看,发现只有2x,x2,2*x2的因子不是偶数,只需要算出来然后减去重复的就ok.....
分类:其他好文   时间:2015-04-27 12:55:54    阅读次数:149
LightOJ 1109 -1354 - IP Checking(字符串的处理)
题目大意: 这题的意思就是说,给两个字符串,一个字符串中的数字是用10进制表示的,一个字符串的数字是用2进制表示的,看看十进制和二进制是否对应。解题思路: 处理在'.'上。。。。代码: 1 # include 2 # include 3 # include 4 # include 5 6 us...
分类:其他好文   时间:2015-04-26 18:09:42    阅读次数:120
LightOJ 1085 - All Possible Increasing Subsequences (离散化+树状数组+dp)
1085 - All Possible Increasing SubsequencesPDF (English)StatisticsForumTime Limit:3 second(s)Memory Limit:64 MBAn increasing subsequence from a sequen...
分类:编程语言   时间:2015-04-26 01:19:26    阅读次数:236
lightoj 1234 Harmonic Number
题目大意: 给一个数n,求出1/1+1/2+1/3+....+1/(n-1)+1/n;求中1 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 #define maxn 2500005 9 #de...
分类:其他好文   时间:2015-04-25 10:32:52    阅读次数:227
714条   上一页 1 ... 63 64 65 66 67 ... 72 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!