码迷,mamicode.com
首页 >  
搜索关键字:hdoj    ( 2498个结果
HDOJ(HDU) 2178 猜数字(题意有点难理解、、、)
Problem Description A有1数m,B来猜.B每猜一次,A就说”太大”,”太小”或”对了” 。 问B猜n次可以猜到的最大数。 Input 第1行是整数T,表示有T组数据,下面有T行 每行一个整数n (1 ≤ n ≤ 30) Output 猜n次可以猜到的最大数Sample Input 2 1 3Sample Output 1 7这个题目我总感觉题意没说明白,没...
分类:其他好文   时间:2016-05-06 13:11:44    阅读次数:369
HDOJ(HDU) 2212 DFS(阶乘相关、)
Problem Description A DFS(digital factorial sum) number is found by summing the factorial of every digit of a positive integer. For example ,consider the positive integer 145 = 1!+4!+5!, so it’s a DFS...
分类:其他好文   时间:2016-05-06 02:18:14    阅读次数:153
HDOj-1412
{A} + {B} Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 17014 Accepted Submission(s): 7110 Pro ...
分类:其他好文   时间:2016-05-05 22:34:25    阅读次数:229
HDOJ-1002
Problem Description I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B. Input The first line ...
分类:其他好文   时间:2016-05-05 00:44:08    阅读次数:209
HDOJ-2153
仙人球的残影 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 6851 Accepted Submission(s): 3192 Problem ...
分类:其他好文   时间:2016-05-05 00:24:45    阅读次数:264
HDOJ 1001
HDOJ 1001: 题目:输入一个整数n,计算sum(n)=1+2+3+...+n,每个测试案例输出间空一行。 分析:水题。注意在while循环里每计算一次要对sum值进行清零。 代码: ...
分类:其他好文   时间:2016-05-05 00:12:31    阅读次数:204
HDOJ 5671 Matrix
Matrix Time Limit: 3000/1500 MS (Java/Others)    Memory Limit: 131072/131072 K (Java/Others) Total Submission(s): 780    Accepted Submission(s): 330 Problem Description There is a matrix ...
分类:其他好文   时间:2016-04-29 17:37:03    阅读次数:231
HDOJ 5667//费马小定理 矩阵快速幂
题目:http://acm.hdu.edu.cn/showproblem.php?pid=5667 题意:如题给了一个函数式,给你a,b,c,n,p的值,叫你求f(n)%p的值 思路:先对函数取以a为底的log,令g(n)=log(a)(f(n)),结果就能得到 g(n)=b+c*g(n-1)+g( ...
分类:其他好文   时间:2016-04-27 10:45:05    阅读次数:114
HDOJ 5672//模拟
题目:http://acm.hdu.edu.cn/showproblem.php?pid=5672 题意:有一个字符串S,字符串里面只包含小写字母,问有多少个子串里面有至少K个不同的字母; 思路:还是放在代码里面说会好一点,其实就是维护一个左端点和满足性质的最小右端点的过程。 1 #include ...
分类:其他好文   时间:2016-04-25 15:00:47    阅读次数:101
HDOJ(HDU) 1678 Shopaholic
Problem Description Lindsay is a shopaholic. Whenever there is a discount of the kind where you can buy three items and only pay for two, she goes completely mad and feels a need to buy all items in t...
分类:其他好文   时间:2016-04-20 02:05:24    阅读次数:139
2498条   上一页 1 ... 58 59 60 61 62 ... 250 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!