摘要: #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N = 1e6+10; int n; int q[N]; void quick_sort(int q[],int l, 阅读全文
posted @ 2022-04-01 16:54 大废物 阅读(41) 评论(0) 推荐(0)
摘要: 兔子很热爱学习,为了多学习她希望可以找最快的路线去上学。她的城市里有N个(2 <= N <= 1000)个地铁站,编号分别为1..N。兔子家在1号地铁站旁边,学校是N号地铁站。地铁站之间共有M (1 <= M <= 2000)条双向路径。兔子现在在1号地铁站,她希望知道到学校最短需要多少时间。可以保 阅读全文
posted @ 2021-12-03 21:01 大废物 阅读(85) 评论(0) 推荐(0)
摘要: Wireless Network An earthquake takes place in Southeast Asia. The ACM (Asia Cooperated Medical team) have set up a wireless network with the lap compu 阅读全文
posted @ 2021-12-03 14:17 大废物 阅读(43) 评论(0) 推荐(0)
摘要: Oil Deposits The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangul 阅读全文
posted @ 2021-11-30 22:28 大废物 阅读(35) 评论(0) 推荐(0)
摘要: Subsequence A sequence of N positive integers (10 < N < 100 000), each of them less than or equal 10000, and a positive integer S (S < 100 000 000) ar 阅读全文
posted @ 2021-11-30 09:22 大废物 阅读(69) 评论(0) 推荐(0)
摘要: Prime Path The ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four 阅读全文
posted @ 2021-11-22 20:14 大废物 阅读(64) 评论(0) 推荐(0)
摘要: Catch That Cow Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100 阅读全文
posted @ 2021-11-15 16:57 大废物 阅读(63) 评论(0) 推荐(0)
摘要: Dungeon Master You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be fi 阅读全文
posted @ 2021-11-15 16:11 大废物 阅读(182) 评论(0) 推荐(0)