数学
左眼皮跳跳~
这个作者很懒,什么都没留下…
展开
-
POJ 1365 Prime Land
POJ 1365 Prime Land 快速幂原创 2014-08-02 18:40:39 · 765 阅读 · 0 评论 -
ZOJ 3870 Team Formation(数学)
Team FormationTime Limit: 3 Seconds Memory Limit: 131072 KB For an upcoming programming contest, Edward, the headmaster of Marjar University, is forming a two-man team fromN student原创 2015-04-25 22:50:42 · 630 阅读 · 0 评论 -
CSU 1563: Lexicography (数学计数问题)
1563: LexicographyTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 342 Solved: 111[Submit][Status][Web Board]DescriptionAn anagram of a string is any string that can be formed using the原创 2015-05-04 19:45:33 · 683 阅读 · 0 评论 -
CF 301 B School Marks
B. School Markstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle Vova studies programming in an elite原创 2015-05-01 08:42:12 · 910 阅读 · 0 评论 -
wust 1420 We love FibonaQ(矩阵+线段树)
1420: We love FibonaQTime Limit: 3 Sec Memory Limit: 128 MB 64bit IO Format: %lldSubmitted: 7 Accepted: 3[Submit][Status][Web Board]DescriptionYou will find CQ is a very bored man wh原创 2015-05-30 17:05:32 · 1054 阅读 · 0 评论 -
hdu 5317 RGCDQ
RGCDQTime Limit: 6000/3000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 309 Accepted Submission(s): 156Problem DescriptionMr. Hdu is interested原创 2015-07-28 19:48:36 · 793 阅读 · 0 评论 -
HDU 2276 Kiki & Little Kiki 2(矩阵快速幂)
Kiki & Little Kiki 2Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2265 Accepted Submission(s): 1146Problem DescriptionThere原创 2015-08-25 18:37:43 · 567 阅读 · 0 评论 -
Uva 12075 Counting Triangles(容斥)
/*思路:1.先选三个点 2.去掉同行情况 3.去掉同列情况 4.枚举矩形大小去掉重复情况*/#pragma comment(linker, "/STACK:1024000000,1024000000")#include#include#include#include#include#include#include#include#in原创 2015-08-19 16:22:15 · 799 阅读 · 2 评论 -
Light oj 1095 - Arrange the Numbers(错排)
1095 - Arrange the NumbersPDF (English)StatisticsForumTime Limit: 2 second(s)Memory Limit: 32 MBConsider this sequence {1, 2, 3 ... N}, as an initial se原创 2015-09-22 20:29:24 · 472 阅读 · 0 评论 -
ZOJ 3872 Beauty of Array(数学)
Beauty of ArrayTime Limit: 2 Seconds Memory Limit: 65536 KB Edward has an array A with N integers. He defines the beauty of an array as the summation of all distinct integers in the a原创 2015-04-25 22:31:21 · 956 阅读 · 0 评论 -
HDU 5194 DZY Loves Balls(排列组合瞎搞 )
Problem DescriptionThere are n black balls and m white balls in the big box.Now, DZY starts to randomly pick out the balls one by one. It forms a sequence S. If at the i-th operation,原创 2015-03-28 22:36:58 · 1295 阅读 · 0 评论 -
HDU 5187 zhx's contest(防爆__int64 )
Problem DescriptionAs one of the most powerful brushes, zhx is required to give his juniorsn problems.zhx thinks the ith problem's difficulty is i. He wants to arrange these problems in a原创 2015-03-14 23:14:38 · 1401 阅读 · 0 评论 -
HDU 1030 数学
hdu1030 数学题简单数学题,找规律,找到了就发现很水。从三个角度看这个图,level,left,right,如下图,题目的答案就是3个图上2个点之间的层数的高度差之和。例如 6 12 ,level=1,left=1,right=1,答案就是3。例如 3 12 ,level=2,left=1,right=2,答案就是6。 #转载 2014-07-29 21:18:28 · 755 阅读 · 0 评论 -
HDU 1604 (数论)
此题感觉好难,比赛时推两个小时转载 2014-07-31 20:36:42 · 947 阅读 · 1 评论 -
POJ 1840 数学
POJ 1840 数学原创 2014-08-19 19:53:53 · 717 阅读 · 0 评论 -
POJ 3370 Halloween treats(抽屉原理)
POJ 3370 Halloween treats(抽屉原理)原创 2014-08-20 09:02:24 · 1129 阅读 · 0 评论 -
HDU 5073 Galaxy(居然是暴力)
Problem DescriptionGood news for us: to release the financial pressure, the government started selling galaxies and we can buy them from now on! The first one who bought a galaxy was Tianming Yun an原创 2014-10-23 19:32:41 · 970 阅读 · 0 评论 -
HDU 5108Alexandra and Prime Numbers(大素数)
Problem DescriptionAlexandra has a little brother. He is new to programming. One day he is solving the following problem: Given an positive integer N, judge whether N is prime.The problem above is原创 2014-11-22 21:16:37 · 895 阅读 · 0 评论 -
poj3070 Fibonacci(矩阵乘法初学)
Language:DefaultFibonacciTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 9972 Accepted: 7114DescriptionIn the Fibonacci integer sequence, F0 = 0原创 2015-02-17 16:48:32 · 480 阅读 · 0 评论 -
HDU5171 GTY's birthday gift(矩阵快速幂)
Problem DescriptionFFZ's birthday is coming. GTY wants to give a gift to ZZF. He asked his gay friends what he should give to ZZF. One of them said, 'Nothing is more interesting than a number multis原创 2015-02-19 16:33:56 · 1100 阅读 · 0 评论 -
LeetCode 650. 2 Keys Keyboard
650. 2 Keys KeyboardDescriptionHintsSubmissionsDiscussSolutionPick OneInitially on a notepad only one character 'A' is present. You can perform two operations on this notepad for each step:Cop...原创 2018-07-23 00:16:14 · 204 阅读 · 0 评论