hdu4221 Greedy?(欲張り)

643 ワード

どうして全部英語の問題なのか分からない...ちゃんと中国語出られないだろ
案の定意味を見損なった
#include 
#include 
using namespace std;
struct node 
{
	long long day,end;
}c[100005];
bool cmp(node x,node y)
{
	if(x.endy.day) return true;
	return false;
}
int main()
{
	int test,n,q=1;
	scanf("%d",&test);
	while(test--)
	{
		scanf("%d",&n);
		for(int i=0;imax)
			max=sum-c[i].end;
		}
		printf("Case %d: %lld
",q++,max); } return 0; }

ああ、やっぱり意味が間違っていて見本も読めない