数学
文章平均质量分 79
black_miracle
这个作者很懒,什么都没留下…
展开
-
HDU 1521 数学 母函数
排列组合Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem Description有n种物品,并且知道每种物品的数量。要求从中选出m件物品的排列数。例如有两种物品A,B,并且数量都是1,从中选2件物品,则排列有"AB","BA"两种。原创 2016-08-03 19:01:26 · 192 阅读 · 0 评论 -
SPOJ VECTAR1 数学
Matrices with XOR propertyno tags Imagine A is a NxM matrix with two basic properties1) Each element in the matrix is distinct and lies in the range of 12) For any two cells原创 2017-03-08 22:44:03 · 334 阅读 · 0 评论 -
SPOJ VECTAR5 推公式
Count SubsetsYou are given a set S = {1, 2, 3, ..., n}. Your task is simple. You have to calculate the number of ways of selecting non empty subsets A and B such that A is not a subset of B and B原创 2017-03-09 14:43:29 · 270 阅读 · 0 评论 -
Codeforces gym 100548 F (2014-2015 icpc西安现场赛) 数学
ColorDescriptionRecently, Mr. Big recieved n flowers from his fans. He wants to recolor those flowers withm colors. The flowers are put in a line. It is not allowed to color any adjacent flowers原创 2017-04-08 19:19:57 · 532 阅读 · 0 评论 -
Codeforces 785D 数学
Anton and School - 2time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAs you probably know, Anton goes to sc原创 2017-03-16 11:57:10 · 243 阅读 · 0 评论 -
Codeforces gym 101350G 数学
Snake Ranatime limit per test4 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOld Macdonald wants to build a new hen house for原创 2017-04-29 21:17:00 · 1078 阅读 · 0 评论 -
HDU 2298 数学
ToxophilyTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2070 Accepted Submission(s): 1149Problem DescriptionThe recreation c原创 2017-04-06 17:21:30 · 255 阅读 · 0 评论 -
BNUOJ 51643 数学
Cactus ExplorationTime Limit: 1000msMemory Limit: 262144KB很久以前,whalyzh同学去沙漠旅行,看到了很多很多的仙人掌,但是现在whalyzh同学已经想不起来最酷炫的那棵仙人掌长什么样了,只记得一些特征。小Q同学根据whalyzh同学的描述,发现这棵仙人掌可以画成一个无向的连通图原创 2017-04-19 19:43:02 · 322 阅读 · 0 评论 -
HDU 6044 Limited Permutation 想法
Limited PermutationTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 1714 Accepted Submission(s): 463Problem DescriptionAs to原创 2017-08-01 00:39:05 · 443 阅读 · 0 评论 -
牛客网暑期ACM多校训练营(第一场)A Monotonic Matrix
链接:https://www.nowcoder.com/acm/contest/139/A来源:牛客网 题目描述Count the number of n x m matrices A satisfying the following condition modulo ().* Ai, j ∈ {0, 1, 2} for all 1 ≤ i ≤ n, 1 ≤ j ≤ m.* Ai,...原创 2018-07-20 10:56:46 · 425 阅读 · 0 评论 -
SPOJ UCV2013E 数学
Greedy Walkingno tags Reginald is an N-dimensional traveler who wants to return to Filipistonia's Kingdom. He has an Obsessive-compulsive disorder in the way he travels so he can only do原创 2017-01-23 17:44:25 · 231 阅读 · 0 评论 -
NJUST 1922 容斥原理
count_primeTime Limit: 1000msMemory Limit: 65536KBDescription给定你一个数n,请你统计出在[a,b]这个区间中和n互质的数的个数。两个数互质当且仅当他们除了1之外没有其他的公共因子或者他们最大的公共因子是1。1和任何数是互素的。Input第一行输入一个整数T(1原创 2016-04-24 21:53:07 · 427 阅读 · 0 评论 -
HDU 1465 数学 错排
不容易系列之一Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem Description大家常常感慨,要做好一件事情真的不容易,确实,失败比成功容易多了!做好“一件”事情尚且不易,若想永远成功而总从不失败,那更是难上加难了,就像花钱总是比挣钱容易原创 2016-08-03 19:08:43 · 204 阅读 · 0 评论 -
HDU 4651 数学 五边形数定理
PartitionTime Limit: 6000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem DescriptionHow many ways can the numbers 1 to 15 be added together to make 15? The technic原创 2016-08-03 19:18:25 · 419 阅读 · 0 评论 -
HDU 5651 组合数学
xiaoxin juju needs helpTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)问题描述xiaoxin巨从小就喜欢字符串,六年级的时候他就知道了什么是回文串。这时,xiaoxin巨说到:如果一个字符串 S 是回文串,原创 2016-04-24 21:41:07 · 499 阅读 · 0 评论 -
BJTU 数学
Description懒羊羊是一只非常能吃的羊,它在青青草原上发现一块巨大的正方形草地,但灰太狼已经抢先一步在草地下布上了若干陷阱,正方形草地位于直角坐标系中,左下角坐标为(1,1),右上角坐标为(m,m),草地内只有整数坐标点上才长有青草,懒羊羊发现,对于一棵坐标为(x,y)处的青草,只有(x*y) Mod m>0时,草旁边才有一个陷阱,Mod为取余数聪明的你是否能帮懒羊羊算一算,这块草原创 2016-04-24 21:54:34 · 893 阅读 · 3 评论 -
HDU 2082 母函数
找单词Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem Description假设有x1个字母A, x2个字母B,..... x26个字母Z,同时假设字母A的价值为1,字母B的价值为2,..... 字母Z的价值为26。那么,对于给定的字母,可以找到原创 2016-08-01 13:20:29 · 323 阅读 · 0 评论 -
HDU 2079 母函数
选课时间(题目已修改,注意读题)Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem Description又到了选课的时间了,xhd看着选课表发呆,为了想让下一学期好过点,他想知道学n个学分共有多少组合。你来帮帮他吧。(xhd认为一样学分的课没区原创 2016-08-01 13:55:30 · 226 阅读 · 0 评论 -
HDU 5826 数学积分
HDU 5826 数学积分原创 2016-08-11 17:59:16 · 343 阅读 · 0 评论 -
HDU 5833 高斯消元
Zhu and 772002Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Problem DescriptionZhu and 772002 are both good at math. One day, Zhu wants to test the abili原创 2016-08-14 20:13:06 · 516 阅读 · 0 评论 -
HDU 5894 组合数学
hannnnah_j’s Biological TestTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 235 Accepted Submission(s): 66Problem Description原创 2016-09-19 00:48:15 · 339 阅读 · 0 评论 -
牛客网暑期ACM多校训练营(第四场)A Ternary String
链接:https://www.nowcoder.com/acm/contest/142/A来源:牛客网 题目描述A ternary string is a sequence of digits, where each digit is either 0, 1, or 2.Chiaki has a ternary string s which can self-reproduce. E...原创 2018-07-29 14:02:43 · 287 阅读 · 0 评论