摘要:
很蠢地在div2的D题卡住做不出来,这次的D题算是比较简单的,看了题解之后学会了一种新姿势 后缀修改数组,贪心新姿势!! 本题题意: 有n个怪物,每个怪物的power是ai 有 m个勇士,power是pi ,忍耐度是si 当勇士比当前怪物power小或忍耐度为0时结束一天,不然就继续。求最小天数。 阅读全文
摘要:
#include<iostream> #include<algorithm> #include<cstdio> #include<string> #include<cstring> using namespace std; typedef long long ll; const int N=1000 阅读全文