摘要: Meteor Flow(贪心+优先队列) AC_Code 1 ///既然只要发射一次,就可以打掉,那么就要打掉那个耗费经历最多的,以保留更多的精力 (所以用优先队列,先弹出耗费经历最多的) 2 ///其次,只要有能力打就先不发射(所以先入栈) 3 4 #include <iostream> 5 #i 阅读全文
posted @ 2019-10-25 18:04 swsyya 阅读(77) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2019-10-25 17:08 swsyya 阅读(3) 评论(0) 推荐(0)
摘要: Victor's Research(前缀和处理) AC_code 1 /*map维护每一个前缀和,这样接下来枚举左端点即可,确定左端点,s+左端点就是右端点*/ 2 #include <iostream> 3 #include <cstdio> 4 #include <cmath> 5 #inclu 阅读全文
posted @ 2019-10-25 16:39 swsyya 阅读(132) 评论(0) 推荐(0)

回到顶部