User Tools

Site Tools


Sidebar

rosedu:cdl:marius-dragus

This is an old revision of the document!


= Shidfar Hodizoda = *Nume complet: Shidfar Hodizoda *Alias-uri: DMI *Data/locul nașterii: 14 octombrie 1990,Cluj-Napoca

Educatie

*2005-2009 Liceul International de informatica Bucuresti *2009-prezent Universitatea Politehnica Bucuresti

Competente

*sunt smecher ce sa mai….

Acum niste cod baby
#include<stdio.h>
#include<assert.h>
#include<vector>
#include<algorithm>
#define pb push_back
#define mkp make_pair

using namespace std;
const int maxn = 340;

vector<short> VECT[maxn];
vector<pair<short,short> > ANS,AUX,VEC;
short N,MOVE,COST;
short VER[maxn];
short NRT,TATA[maxn];
short D[maxn][maxn],M[maxn][maxn];

bool cmpf(pair<short,short> p1,pair<short,short> p2)
{
	short n1 = p1.first;
	short n2 = p2.first;
	short i1 = p1.second;
	short i2 = p2.second;
	for(;i1 <= N && i2 <= N;++i1,++i2)
	{
		if (D[n1][i1] != D[n2][i2]) return D[n1][i1] < D[n2][i2];
                if (D[n1][i1] == 0) return false;
        }
	return false;
}
Si un tabel cu giberis
Ceva Blablabla altceva
caca macanata
gatacurimele
rosedu/cdl/marius-dragus.1279289909.txt.gz · Last modified: 2010/07/16 17:18 by 81.213.48.76