啥都不会啊!怎么办啊!

Fitz

慢慢来生活总会好起来的!!!

摘要: 作为一个城市的应急救援队伍的负责人,你有一张特殊的全国地图。在地图上显示有多个分散的城市和一些连接城市的快速道路。每个城市的救援队数量和每一条连接两个城市的快速道路长度都标在地图上。当其他城市有紧急求助电话给你的时候,你的任务是带领你的救援队尽快赶往事发地,同时,一路上召集尽可能多的救援队。 输入格 阅读全文
posted @ 2018-03-29 20:08 Fitz~ 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 链接:https://www.nowcoder.com/acm/contest/90/D来源:牛客网 掌握未来命运的女神 psd 师兄在拿了朝田诗乃的 buff 后决定去实习。 埃森哲公司注册成立于爱尔兰,是一家全球领先的专业服务公司,为客户提供战略、咨询、数字、技术和运营服务及解决方案。他们立足商 阅读全文
posted @ 2018-03-25 23:30 Fitz~ 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 链接:https://www.nowcoder.com/acm/contest/90/L来源:牛客网 在一个风雨交加的夜晚,来自异世界的不愿透露姓名的TMK同学获得了两种超强药水A、B。根据说明书,TMK知道了这两种药水的作用: (1)药水A能使人的生命值提高,每饮用1个单位能使他生命值变成原来的x 阅读全文
posted @ 2018-03-25 21:49 Fitz~ 阅读(638) 评论(12) 推荐(0) 编辑
摘要: 链接:https://www.nowcoder.com/acm/contest/90/F来源:牛客网 题目描述 给定n,求1/x + 1/y = 1/n (x<=y)的解数。(x、y、n均为正整数) 输入描述: 在第一行输入一个正整数T。接下来有T行,每行输入一个正整数n,请求出符合该方程要求的解数 阅读全文
posted @ 2018-03-25 21:40 Fitz~ 阅读(3266) 评论(0) 推荐(0) 编辑
摘要: Several currency exchange points are working in our city. Let us suppose that each point specializes in two particular currencies and performs exchang 阅读全文
posted @ 2018-03-22 20:54 Fitz~ 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Description Oh those picky N (1 <= N <= 50,000) cows! They are so picky that each one will only be milked over some precise time interval A..B (1 <= A 阅读全文
posted @ 2018-03-22 11:42 Fitz~ 阅读(114) 评论(0) 推荐(0) 编辑
摘要: One cow from each of N farms (1 ≤ N ≤ 1000) conveniently numbered 1..N is going to attend the big cow party to be held at farm #X (1 ≤X ≤ N). A total 阅读全文
posted @ 2018-03-22 00:11 Fitz~ 阅读(183) 评论(0) 推荐(0) 编辑
摘要: Once again, James Bond is on his way to saving the world. Bond's latest mission requires him to travel between several pairs of cities in a certain co 阅读全文
posted @ 2018-03-19 00:03 Fitz~ 阅读(223) 评论(0) 推荐(0) 编辑
摘要: LCA 算法是一个技巧性很强的算法。 十分感谢月老提供的模板。 这里我实现LCA是通过倍增,其实就是二进制优化。 任何一个数都可以有2的阶数实现 例如16可以由1 2 4 8组合得到 5可以由1 2 4 组合得到 便于读者理解 我放一道例题吧 Problem F: 挑战迷宫 Description 阅读全文
posted @ 2018-03-16 12:40 Fitz~ 阅读(457) 评论(0) 推荐(0) 编辑
摘要: The Robot Moving Institute is using a robot in their local store to transport different items. Of course the robot should spend only the minimum time 阅读全文
posted @ 2018-03-09 10:24 Fitz~ 阅读(402) 评论(0) 推荐(0) 编辑