计算机数学
文章平均质量分 71
mkopvec13579
这个作者很懒,什么都没留下…
展开
-
HDU 1999 数学题
不可摸数Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 10161 Accepted Submission(s): 2638Problem Descriptions(n)是正整数n的真因子之和,即小于n原创 2015-08-24 19:14:14 · 440 阅读 · 0 评论 -
HDU 1286 欧拉
找新朋友Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9456 Accepted Submission(s): 5010Problem Description新年快到了,“猪头帮协会”准备搞一个聚会,已经知道原创 2015-09-21 23:36:48 · 248 阅读 · 0 评论 -
HDU 1717 数学
小数化分数2Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3941 Accepted Submission(s): 1601Problem DescriptionRay 在数学课上听老师说,任何小数都能表示成原创 2015-10-10 16:01:56 · 291 阅读 · 0 评论 -
HDU 1700 复数应用
Points on Cycle Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2074 Accepted Submission(s): 761Problem DescriptionThere is a cyc原创 2015-10-10 18:49:49 · 182 阅读 · 0 评论 -
HDU 4549 费马定理 快速幂 矩阵快速幂
M斐波那契数列Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 2286 Accepted Submission(s): 668Problem DescriptionM斐波那契数列F[n]是一种整数数列,原创 2015-11-12 17:22:23 · 189 阅读 · 0 评论 -
HDU 1568 对数
FibonacciTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4103 Accepted Submission(s): 1918Problem Description2007年到来了。经过2006年一年的修原创 2015-11-13 14:32:50 · 197 阅读 · 0 评论 -
HDU 2576 数学
Another Sum ProblemTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1477 Accepted Submission(s): 407Problem DescriptionFunnyAC lik原创 2015-11-13 18:38:28 · 225 阅读 · 0 评论 -
HDU 1398 母函数
Square CoinsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9989 Accepted Submission(s): 6847Problem DescriptionPeople in Silverl原创 2015-11-01 15:17:14 · 192 阅读 · 0 评论 -
POJ 3233 矩阵快速幂
Matrix Power SeriesTime Limit: 3000MS Memory Limit: 131072KTotal Submissions: 18608 Accepted: 7867DescriptionGiven a n × n matrix A and a positive integer k, fi原创 2015-12-10 00:13:23 · 263 阅读 · 0 评论 -
POJ 2262 筛素法
Goldbach's ConjectureTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 41755 Accepted: 15995DescriptionIn 1742, Christian Goldbach, a German amateur mathe原创 2015-12-13 12:33:30 · 233 阅读 · 0 评论 -
高斯消元模板
#include#include#include#include#includeusing namespace std;const int MAXN=50;int a[MAXN][MAXN];//增广矩阵int x[MAXN];//解集bool free_x[MAXN];//标记是否是不确定的变元/*void Debug(void原创 2015-12-28 23:54:22 · 261 阅读 · 0 评论 -
HDU 2512 第二类Strling数
一卡通大冒险Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1864 Accepted Submission(s): 1238Problem Description因为长期钻研算法, 无暇顾及个人问题,BUAA原创 2015-12-19 17:15:11 · 298 阅读 · 0 评论 -
POJ 1019 数学
Number SequenceTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 36482 Accepted: 10525DescriptionA single positive integer i is given. Write a program to fi原创 2015-12-09 17:48:44 · 189 阅读 · 0 评论 -
51NOD N!
#include#include#define MAX 40000using namespace std;int main(){ int n;int i,j; int a[MAX]; //存数运算结果int p,h,temp; //p存储当前结果的位数,h为进位memset(a,0,sizeof(a));a原创 2015-12-26 10:54:15 · 250 阅读 · 0 评论 -
51NOD 1136 欧拉函数模板
#include#include#include#include#define LL long long#define maxn 10000using namespace std;const int SIZE = 100000001;int phi[SIZE];void init(){ int i, j; memset(phi,原创 2015-12-26 12:09:00 · 324 阅读 · 0 评论 -
51nod 1119 除法取模
1119 机器人走方格 V2基准时间限制:1 秒 空间限制:131072 KB 分值: 10 难度:2级算法题 收藏 关注M * N的方格,一个机器人从左上走到右下,只能向右或向下走。有多少种不同的走法?由于方法数量可能很大,只需要输出Mod 10^9 + 7的结果。Input第1行,2个数M,N,中间用空转载 2016-01-27 17:47:59 · 1492 阅读 · 0 评论 -
PID371 / [AHOI1997]彩旗飘飘 排列组合加DP
题目描述有n面红旗和n面黄旗从东到西插成一排。如果相邻的两面旗帜的颜色不同,则称为颜色发生一次改变。任务:计算这2n面旗帜的颜色改变m次的插法共有多少种?示例:旗帜的颜色为“红黄红红黄黄黄”称为颜色改变了3次的插法。在n=4,m=1时仅有两种插法:“红红红红黄黄黄黄”和“黄黄黄黄红红红红”,对应的输出为“2”。输入格式输入:从键盘原创 2016-02-21 14:44:56 · 1828 阅读 · 0 评论 -
HDU 1719 找规律
FriendTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2264 Accepted Submission(s): 1136Problem DescriptionFriend number are defin原创 2015-10-10 00:10:02 · 283 阅读 · 0 评论 -
HDU 4503 数学
湫湫系列故事——植树节Time Limit: 1000/500 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 1233 Accepted Submission(s): 732Problem Description 今天是一年一度的植树节,腾讯幼儿园要原创 2015-11-06 20:21:43 · 331 阅读 · 0 评论 -
HDU 4506 快速幂
小明系列故事——师兄帮帮忙Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 5161 Accepted Submission(s): 1365Problem Description 小明自从告别了ACM/ICP原创 2015-11-07 14:39:19 · 187 阅读 · 0 评论 -
HDU 2674 N!mod2009
N!AgainTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4136 Accepted Submission(s): 2222Problem DescriptionWhereIsHeroFrom:原创 2015-08-24 14:55:06 · 409 阅读 · 0 评论 -
HDU 1173 数学题
采矿Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3195 Accepted Submission(s): 1490Special JudgeProblem Description某天gameboy原创 2015-08-27 12:05:37 · 344 阅读 · 0 评论 -
HDU 2114 数学题
Calculate S(n)Time Limit: 10000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 9113 Accepted Submission(s): 3328Problem DescriptionCalculate原创 2015-08-27 13:03:23 · 334 阅读 · 0 评论 -
HDU 1597 数学题
find the nth digitTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 9550 Accepted Submission(s): 2767Problem Description假设:S1原创 2015-08-27 13:37:28 · 292 阅读 · 0 评论 -
HDU 5417 数学题
Victor and MachineTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others)Total Submission(s): 209 Accepted Submission(s): 119Problem DescriptionVictor h原创 2015-08-23 00:14:42 · 354 阅读 · 0 评论 -
HDU 1222 GCD
Wolf and RabbitTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6214 Accepted Submission(s): 3108Problem DescriptionThere is a原创 2015-08-23 01:08:33 · 391 阅读 · 0 评论 -
HDU 2082 母函数
找单词Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5147 Accepted Submission(s): 3670Problem Description假设有x1个字母A, x2个字母B,..... x2原创 2015-09-30 20:36:30 · 254 阅读 · 0 评论 -
HDU 1799 排列组合
循环多少次?Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3539 Accepted Submission(s): 1330Problem Description 我们知道,在编程中,我们时常需要考虑到时间原创 2015-09-30 19:31:57 · 239 阅读 · 0 评论 -
HDU 2110 母函数
Crisis of HDUTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4272 Accepted Submission(s): 1201Problem Description话说上回讲到HDU大战东洋小苟,原创 2015-09-30 20:25:54 · 367 阅读 · 0 评论 -
HDU 4565 矩阵快速幂
So Easy!Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3343 Accepted Submission(s): 1070Problem Description A sequence Sn is de转载 2015-10-18 15:35:02 · 188 阅读 · 0 评论 -
HDU 1171 母函数
Big Event in HDUTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 30048 Accepted Submission(s): 10545Problem DescriptionNowadays,原创 2015-10-02 14:10:26 · 262 阅读 · 0 评论 -
HDU 1085 母函数
Holding Bin-Laden Captive!Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 17767 Accepted Submission(s): 7955Problem DescriptionWe原创 2015-10-01 15:24:01 · 210 阅读 · 0 评论 -
HDU 2104 GCD
hide handkerchiefTime Limit: 10000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3462 Accepted Submission(s): 1626Problem DescriptionThe Childre原创 2015-10-02 16:37:55 · 331 阅读 · 0 评论 -
HDU 1575 矩阵快速幂
Tr ATime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3732 Accepted Submission(s): 2783Problem DescriptionA为一个方阵,则Tr A表示A的迹(就是主对角线上原创 2015-10-05 10:47:06 · 218 阅读 · 0 评论 -
HDU 1163 余9定理
Eddy's digital RootsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5513 Accepted Submission(s): 3047Problem DescriptionThe digit原创 2015-11-04 17:46:10 · 283 阅读 · 0 评论 -
HDU 2065 母函数
"红色病毒"问题Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4999 Accepted Submission(s): 2082Problem Description医学界发现的新病毒因其蔓延速度和Inter原创 2015-10-05 00:07:00 · 251 阅读 · 0 评论 -
51NOD 1467 旋转绳 二分查找 模拟
1467 旋转绳题目来源: CodeForces基准时间限制:1.5 秒 空间限制:131072 KB 分值: 80 难度:5级算法题 收藏 关注平面上有n个钉子,他们从1到n编号,第i个钉子的坐标是 (xi, 0)。然后我们我们把一个长度为L,带重物的绳子系到第i个钉子上(那么重物所在的坐标是(xi, -L))。然后用力将重原创 2016-03-19 15:34:40 · 493 阅读 · 0 评论