Fight Against Monsteres_贪心
本题按照性价比排序依次打怪兽;
每只怪兽的攻击力/打每只怪兽的次数 排序
#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5+5;
typedef long long ll;
int n,m;
struct node
{
ll hp,at;
double bi;
}spe[max...
原创
2018-07-17 15:36:16 ·
383 阅读 ·
0 评论