摘要: 前几天定义y1出现这样的报错,没管改成y11就继续写,今天比赛又忘记这个,赶紧上网查查是什么原因,这个y1在math.h里定义过了。继续打开math.h - corecrt_math.h 发现,不仅是y1,连j0,j1,jn,y0,yn都被定义了 作用: Function: double j0 (d 阅读全文
posted @ 2020-04-19 18:59 XXXSANS 阅读(1752) 评论(0) 推荐(0)
摘要: Matt has N friends. They are playing a game together. Each of Matt’s friends has a magic number. In the game, Matt selects some (could be zero) of his 阅读全文
posted @ 2020-04-19 12:24 XXXSANS 阅读(127) 评论(0) 推荐(0)
摘要: Michael has a telecontrol robot. One day he put the robot on a loop with n cells. The cells are numbered from 1 to n clockwise. At first the robot is 阅读全文
posted @ 2020-04-19 11:52 XXXSANS 阅读(189) 评论(0) 推荐(0)
摘要: Now I think you have got an AC in Ignatius.L's "Max Sum" problem. To be a brave ACMer, we always challenge ourselves to more difficult problems. Now y 阅读全文
posted @ 2020-04-19 10:48 XXXSANS 阅读(121) 评论(0) 推荐(0)
摘要: 有两堆石子,数量任意,可以不同。游戏开始由两个人轮流取石子。游戏规定,每次有两种不同的取法,一是可以在任意的一堆中取走任意多的石子;二是可以在两堆中同时取走相同数量的石子。最后把石子全部取完者为胜者。现在给出初始的两堆石子的数目,如果轮到你先取,假设双方都采取最好的策略,问最后你是胜者还是败者。 I 阅读全文
posted @ 2020-04-19 00:48 XXXSANS 阅读(186) 评论(0) 推荐(0)
摘要: There are many secret openings in the floor which are covered by a big heavy stone. When the stone is lifted up, a special mechanism detects this and 阅读全文
posted @ 2020-04-19 00:10 XXXSANS 阅读(102) 评论(0) 推荐(0)