Hi,
Why W.A?
#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
struct zolwie
{
int w, m;
zolwie(): w(0), m(0)
{}
zolwie(int _w, int _s): w(_w), m(_s-_w)
{}
bool operator<(zolwie const & ref) const
{
return(m>ref.m);
}
};
int main()
{
vector<zolwie> tab ...