******------数学------******
张小象
编程,我自己的能力!!!!
展开
-
poj2746 约瑟夫问题
2746:约瑟夫问题总时间限制: 1000ms 内存限制: 65536kB描述约瑟夫问题:有n只猴子,按顺时针方向围成一圈选大王(编号从1到n),从第1号开始报数,一直数到m,数到m的猴子退出圈外,剩下的猴子再接着从1开始报数。就这样,直到圈内只剩下一只猴子时,这个猴子就是猴王,编程求输入n,m后,输出最后猴王的编号。输入每行是用空格分原创 2015-09-09 14:25:14 · 1439 阅读 · 0 评论 -
light oj 1043 Triangle Partitioning
1043 - Triangle PartitioningPDF (English)StatisticsForumTime Limit: 0.5 second(s)Memory Limit: 32 MBSee the picture below.You ar原创 2015-12-06 15:38:28 · 288 阅读 · 0 评论 -
CodeForces 630 G. Challenge Pennants(组合数学)
Challenge PennantsCrawling in process...Crawling failedTime Limit:500MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmitStatus Practice CodeForces 630G Descr原创 2016-03-20 09:47:14 · 470 阅读 · 0 评论 -
CodeForces-630 H. Benches【排列组合】
Benchestime limit per test0.5 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard outputThe city park of IT City contains n east to west p原创 2016-03-20 17:28:55 · 405 阅读 · 0 评论 -
codeforces 630 I Parking Lot (规律&&组合)
Parking Lottime limit per test0.5 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard outputTo quickly hire highly skilled specialists one of the ne原创 2016-03-20 20:22:22 · 387 阅读 · 0 评论 -
codeforces 630B Moore's Law
Moore's LawTime Limit:500MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionThe city administration of IT City decided to fix up a symbol of scien原创 2016-03-09 16:00:15 · 412 阅读 · 0 评论 -
CODEFORCES630F-Selection of Personnel
Selection of PersonnelTime Limit:500MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionOne company of IT City decided to create a group of innovativ原创 2016-03-09 18:42:49 · 515 阅读 · 0 评论 -
code forces E A rectangle
A rectangletime limit per test0.5 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard outputDeveloping tools for creation of locations map原创 2016-03-24 14:53:48 · 347 阅读 · 0 评论 -
code forces K Indivisibility
K. Indivisibilitytime limit per test0.5 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard outputIT City company developing computer game原创 2016-03-24 20:35:01 · 458 阅读 · 0 评论 -
CODEFORCES630D-Hexagons!
Hexagons!Time Limit:500MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionAfter a probationary period in the game development company of IT City P原创 2016-03-09 17:16:15 · 324 阅读 · 0 评论 -
hdoj 1799 循环多少次?(数学公式)
循环多少次?Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3825 Accepted Submission(s): 1458Problem Description 我们知道,在编程中,我们时常需要考原创 2016-03-15 10:19:21 · 318 阅读 · 0 评论 -
code forces 630 M. Turn
M. Turntime limit per test0.5 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard outputVasya started working in a machine vision company原创 2016-03-27 17:00:54 · 351 阅读 · 0 评论 -
code forces 630 O. Arrow
O. Arrowtime limit per test0.5 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard outputPetya has recently started working as a programme原创 2016-03-27 17:28:07 · 360 阅读 · 0 评论 -
code forces 630 P. Area of a Star
P. Area of a Startime limit per test0.5 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard outputIt was decided in IT City to distinguish原创 2016-03-27 17:35:09 · 345 阅读 · 0 评论 -
hdoj 5533 Dancing Stars on Me
Dancing Stars on MeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 586 Accepted Submission(s): 310Problem DescriptionThe sk原创 2015-12-06 16:34:52 · 469 阅读 · 0 评论 -
hdoj 1034 Candy Sharing Game
Candy Sharing GameTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4430 Accepted Submission(s): 2703Problem DescriptionA numbe原创 2015-12-06 15:09:53 · 306 阅读 · 0 评论 -
zoj 2975 Kinds of Fuwas
Kinds of FuwasTime Limit: 2 Seconds Memory Limit: 65536 KB In the year 2008, the 29th Olympic Games will be held in Beijing. This will signify the prosperity of China as well as becomin原创 2015-09-10 00:15:12 · 354 阅读 · 0 评论 -
hdoj 2824 The Euler function
The Euler functionTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4570 Accepted Submission(s): 1908Problem DescriptionThe原创 2015-09-06 21:03:01 · 352 阅读 · 0 评论 -
母函数入门+模板
在数学中,某个序列的母函数(Generating function,又称生成函数)是一种形式幂级数,其每一项的系数可以提供关于这个序列的信息。使用母函数解决问题的方法称为母函数方法。母函数可分为很多种,包括普通母函数、指数母函数、L级数、贝尔级数和狄利克雷级数。对每个序列都可以写出以上每个类型的一个母函数。构造母函数的目的一般是为了解决某个特定的问题,因此选用何种母函数视乎序列本身的特性和转载 2015-09-13 09:36:55 · 416 阅读 · 1 评论 -
无数次转的母函数
自己理解:对于(#式) (1+x+x^2+x^3+x^4+x^5+....)*(1+x^2+x^4+x^6+x^8+x^10+....)*(1+x^3+x^6+x^9+x^12....).....第一个for给c1 和 c2 赋值 , 把上面#式的第一个括号(1+x+x^2+x^3+x^4+x^5+....)的系数给放在c1中,从而再次计算从 # 的 第二个括号开始 , 所以 i 就是代转载 2015-09-14 01:01:32 · 420 阅读 · 0 评论 -
hdoj 1028 Ignatius and the Princess III
Ignatius and the Princess IIITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 16005 Accepted Submission(s): 11289Problem Descripti原创 2015-09-14 17:53:30 · 332 阅读 · 0 评论 -
hdoj 1398 Square Coins
Square CoinsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9923 Accepted Submission(s): 6803Problem DescriptionPeople in Silve原创 2015-09-14 18:04:03 · 645 阅读 · 0 评论 -
hdoj 1085 Holding Bin-Laden Captive!
Holding Bin-Laden Captive!Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 17696 Accepted Submission(s): 7918Problem Description原创 2015-09-14 20:54:32 · 433 阅读 · 0 评论 -
poj 1401 变形课 数论+二分
变形课Time Limit:2000MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmit StatusDescriptionYou task is to find minimal natural number N, so that N! contains exactly Q zer原创 2015-09-19 16:48:01 · 312 阅读 · 0 评论 -
hdoj 2524 矩形 A+B
矩形A + BTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5334 Accepted Submission(s): 4144Problem Description给你一个高为n ,宽为m列的网格,计算出原创 2015-09-20 21:19:26 · 353 阅读 · 0 评论 -
nyoj 1087 摆方格
摆方格时间限制:1000 ms | 内存限制:65535 KB难度:2描述 给你一个n*n的方格,每个方格里的数必须连续摆放如 1243 ,下图为不连续的,请输出从左上角到右下角的对角线上的最大和 1342原创 2015-09-23 14:19:34 · 706 阅读 · 0 评论 -
hdoj 1239 Calling Extraterrestrial Intelligence Again(数学)
Calling Extraterrestrial Intelligence AgainTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5060 Accepted Submission(s): 2673Probl原创 2015-09-23 13:53:59 · 404 阅读 · 0 评论 -
nyoj 456 邮票分你一半(母函数)(背包)
邮票分你一半时间限制:1000 ms | 内存限制:65535 KB难度:3描述 小珂最近收集了些邮票,他想把其中的一些给他的好朋友小明。每张邮票上都有分值,他们想把这些邮票分成两份,并且使这两份邮票的分值和相差最小(就是小珂得到的邮票分值和与小明的差值最小),现在每张邮票的分值已经知道了,他们已经分好了,你知道最后他们得到的邮票分值和相差多少吗?原创 2015-11-17 16:41:34 · 312 阅读 · 0 评论 -
hdoj 2069 Coin Change【母函数 加强版】
Coin ChangeTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 16135 Accepted Submission(s): 5485Problem DescriptionSuppose there原创 2015-11-24 19:47:39 · 423 阅读 · 0 评论 -
bzoj 1257: [CQOI2007]余数之和sum
1257: [CQOI2007]余数之和sumTime Limit: 5 Sec Memory Limit: 162 MBSubmit: 3145 Solved: 1450[Submit][Status][Discuss]Description给出正整数n和k,计算j(n, k)=k mod 1 + k mod 2 + k mod 3 + … + k mod n的值原创 2016-03-28 22:12:57 · 446 阅读 · 0 评论