摘要: 题目大意: 给出两个数的GCD" role="presentation">GCDGCD和LCM" role="presentation">LCMLCM,求这两个数的最小差值。 Iuput" role="presentation">IuputIuput6 36Outpu... 阅读全文
posted @ 2018-07-09 22:08 全OI最菜 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-07-09 20:58 全OI最菜 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 转载至 https://blog.csdn.... 阅读全文
posted @ 2018-07-09 20:58 全OI最菜 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 题目大意: 给出N" role="presentation">NN个整数,将这N" role="presentation">NN个数从小到大排序好后,奇数项的和为P" role="presentation">PP,偶数项之和为Q" role="presentation... 阅读全文
posted @ 2018-07-09 16:33 全OI最菜 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 题目大意: Input" role="presentation">InputInput(4,(3,2,1,4))(5,(3,5,1,2,4))-1Output" role="presentation">OutputOutput15,67思路: 考试时居然把这道题推出来... 阅读全文
posted @ 2018-07-09 16:25 全OI最菜 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 题目大意: 一个8×8" role="presentation">8×88×8的棋盘上有n" role="presentation">nn个点不可以走,求马(骑士)从(sx,sy)" role="presentation">(sx,sy)(sx,sy)走... 阅读全文
posted @ 2018-07-09 15:02 全OI最菜 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 题目大意: 给出一个连通图,问最多能删掉几条边,使这个图依然联通。Input" role="presentation">InputInput4 61 21 31 42 32 43 4Output" role="presentation">OutputOutput3思路... 阅读全文
posted @ 2018-07-09 14:49 全OI最菜 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 题目大意: Input" role="presentation">InputInput4 2 31 24 31 34 23 2Output" role="presentation">OutputOutput1 32 42 3思路:好题好题!拓扑排序真的是一个轻轻松松... 阅读全文
posted @ 2018-07-09 14:28 全OI最菜 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 题目大意: 思路: emm给你们讲一个故事,Floyd" role="presentation">FloydFloyd比SPFA" role="presentation">SPFASPFA快。啥,不信?那就随你喽。某dalao的感人事迹,上面是Floyd" role=... 阅读全文
posted @ 2018-07-09 07:55 全OI最菜 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 题目大意: 有n" role="presentation">nn个游戏平台,每个游戏平台有C[i]" role="presentation">C[i]C[i]个游戏,但是需要花W[i]" role="presentation">W[i]W[i]块钱才能买这个游戏平台。... 阅读全文
posted @ 2018-07-09 07:31 全OI最菜 阅读(76) 评论(0) 推荐(0) 编辑