随笔分类 -  模板

摘要:Two players take turns picking candies from n heaps,the player who picks the last one will win the game.On each turn they can pick any number of candi 阅读全文
posted @ 2019-10-21 13:11 Ellery_lrh 阅读(157) 评论(0) 推荐(0)
摘要:Adam and Eve enter this year’s ACM International Collegiate Programming Contest. Last night, they played the Calendar Game, in celebration of this con 阅读全文
posted @ 2019-10-17 22:18 Ellery_lrh 阅读(171) 评论(0) 推荐(0)
摘要:hdu1536: Arthur and his sister Caroll have been playing a game called Nim for some time now. Nim is played as follows: The starting position has a num 阅读全文
posted @ 2019-10-14 16:38 Ellery_lrh 阅读(187) 评论(0) 推荐(0)
摘要:Snacks Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 7726 Accepted Submission(s): 1681 Problem 阅读全文
posted @ 2019-10-09 00:17 Ellery_lrh 阅读(168) 评论(0) 推荐(0)
摘要:C. Primes and Multiplication time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. Primes an 阅读全文
posted @ 2019-10-06 18:41 Ellery_lrh 阅读(211) 评论(0) 推荐(0)
摘要:如题,已知一棵包含N个结点的树(连通且无环),每个节点上包含一个数值,需要支持以下操作: 操作1: 格式: 1 x y z 表示将树从x到y结点最短路径上所有节点的值都加上z 操作2: 格式: 2 x y 表示求树从x到y结点最短路径上所有节点的值之和 操作3: 格式: 3 x z 表示将以x为根节 阅读全文
posted @ 2019-09-25 22:51 Ellery_lrh 阅读(156) 评论(0) 推荐(0)