
ACM--组合数学、数论
Lila_老妖
爱与和平.
展开
-
竞赛游戏(博弈论)
1041 竞赛游戏DescriptionA和B准备玩一个游戏,游戏是这样的,一开始桌面上面放了n堆石子,每次每个人能从任意一堆里面取走任意颗石子,直到某个人无法取走石子为止,游戏结束,不能再取石子的人就为输!A和B在这个游戏中都表现的足够优秀,且总是由A先开始。现在给定桌面上石子的初始状态,由你来编写程序确定最终获得胜利的是A还是B。Input输入包括多组测原创 2016-11-12 23:30:50 · 1414 阅读 · 0 评论 -
Public Sale
Public SaleProblem Description虽然不想,但是现实总归是现实,Lele始终没有逃过退学的命运,因为他没有拿到奖学金。现在等待他的,就是像FarmJohn一样的农田生涯。要种田得有田才行,Lele听说街上正在举行一场别开生面的拍卖会,拍卖的物品正好就是一块20亩的田地。于是,Lele带上他的全部积蓄,冲往拍卖会。后来发现,整个拍卖会原创 2017-04-15 23:27:14 · 260 阅读 · 0 评论 -
kiki's game
kiki's gameTime Limit: 5000/1000 MS (Java/Others) Memory Limit: 40000/10000 K (Java/Others)Total Submission(s): 10592 Accepted Submission(s): 6419Problem DescriptionRecently kiki原创 2017-04-16 19:47:21 · 246 阅读 · 0 评论 -
Matrix Multiplication(zoj 2316)(数学问题)
Matrix Multiplication(zoj 2316)Let us consider undirected graph G = which has N vertices and M edges. Incidence matrix of this graph is N * M matrix A = {a ij}, such that a ij is 1 if i-th vertex i...原创 2017-04-18 18:40:49 · 336 阅读 · 0 评论 -
Decimal integer conversion
Decimal integer conversion时间限制:1000 ms | 内存限制:65535 KB难度:2描述XiaoMing likes mathematics, and he is just learning how to convert numbers between different bases , but he keeps making errors since he i...原创 2017-04-17 15:39:25 · 543 阅读 · 0 评论 -
(斐波那契数列)
题目描述There are another kind of Fibonacci numbers: F(0) = 7, F(1) = 11, F(n) = F(n-1) + F(n-2) (n>=2). 输入描述:Input consists of a sequence of lines, each containing an integer n. (n < 1,000,000). ...原创 2018-04-16 10:58:29 · 382 阅读 · 0 评论