Professional Documents
Culture Documents
2271 Pbinfo
2271 Pbinfo
#include <fstream>
using namespace std;
ifstream fin("cerc3.in");
ofstream fout("cerc3.out");
int n;
struct cerc {
int start, stop;
} v[310];
}
}
}
for(i=2;i<=n;i++)
{
if(v[i].start> p)
{
nr++;
p=v[i].stop;
}
}
cout<<nr;
}
int main()
{
citire(v,n);
ordonare(v,n);
greedy(v,n);
return 0;
}