贪心感觉是个不难的算法,这题一开始超时了,简化下就好
#include <iostream>
#include <stdio.h>
#include <algorithm>
using namespace std;
struct cow
{
int T;
int D;
};
int comp(struct cow a,struct cow b)
{
return
贪心感觉是个不难的算法,这题一开始超时了,简化下就好
#include <iostream>
#include <stdio.h>
#include <algorithm>
using namespace std;
struct cow
{
int T;
int D;
};
int comp(struct cow a,struct cow b)
{
return