提交后得100分的C++程序如下:
#include<iostream>
#include<set>
#include<vector>
using namespace std;
struct good
{
int type;
int id;
int score;
good(int t,int i,int s)
{
type=t;
id=i;
score=s;
}
bool operator<(const good &s)
提交后得100分的C++程序如下:
#include<iostream>
#include<set>
#include<vector>
using namespace std;
struct good
{
int type;
int id;
int score;
good(int t,int i,int s)
{
type=t;
id=i;
score=s;
}
bool operator<(const good &s)