摘要: Several bus routes were in the city of Fishburg. None of the routes shared the same section of road, though common stops and intersections were possib 阅读全文
posted @ 2020-07-03 10:35 璃灵 阅读(126) 评论(0) 推荐(0)
摘要: C国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的一清二楚,每个工兵营地的人数都有可能发生 阅读全文
posted @ 2020-04-11 10:52 璃灵 阅读(148) 评论(0) 推荐(0)
摘要: 你有n种牌,第i种牌的数目为ci。另外有一种特殊的牌:joker,它的数目是m。你可以用每种牌各一张来组成一套牌,也可以用一张joker和除了某一种牌以外的其他牌各一张组成1套牌。比如,当n=3时,一共有4种合法的套牌:{1,2,3}, {J,2,3}, {1,J,3}, {1,2,J}。 给出n, 阅读全文
posted @ 2020-04-06 23:35 璃灵 阅读(123) 评论(0) 推荐(0)
摘要: A robot has been programmed to follow the instructions in its path. Instructions for the next direction the robot is to move are laid down in a grid. 阅读全文
posted @ 2020-04-06 12:50 璃灵 阅读(131) 评论(0) 推荐(0)
摘要: E - 免费馅饼 都说天上不会掉馅饼,但有一天gameboy正走在回家的小径上,忽然天上掉下大把大把的馅饼。说来gameboy的人品实在是太好了,这馅饼别处都不掉,就掉落在他身旁的10米范围内。馅饼如果掉在了地上当然就不能吃了,所以gameboy马上卸下身上的背包去接。但由于小径两侧都不能站人,所以 阅读全文
posted @ 2020-04-06 11:36 璃灵 阅读(114) 评论(0) 推荐(0)
摘要: I - Paths on a Grid Imagine you are attending your math lesson at school. Once again, you are bored because your teacher tells things that you already 阅读全文
posted @ 2020-04-06 11:16 璃灵 阅读(115) 评论(0) 推荐(0)