Posted on 22:17 by laviniutorcea

/*Determinati varful cu cel mai mare grad intern si pt acel varf sa se
afiseze multimea gama minus.*/
#include
#include
#include
{
int main()
int i,j,k,n,m,a[20][20];
ifstream f("graf.in")
y>>n;y>>m;
for(i=1;i<=m;i++)
    y>>x;
    y>>z;
    a[x][z]=1;
cin>>k;
cout<<"{";
for(i=1;i<=n;i++)
    if(a[i][k]==1)
        cout<<"("<<<","<<<")";
        cout<<"}";
}
for(i=1;i<=n;i++)
{
    for(j=1;j<=n;j++)
        cout<<<" ";
        cout<

cout<<"{";
for(i=1;i<=n;i++)
    if(a[k][j]==1)
        cout<<"("<<<","<<<",";
        cout<<"}";
f.close();
return 0;

1 comentarii:

Unknown spunea...

How to make money from betting on football - Work Tomake Money
If you're having problems finding herzamanindir.com/ a winning bet online for the 토토 day of your choosing, then there are https://sol.edu.kg/ plenty หาเงินออนไลน์ of opportunities https://septcasino.com/review/merit-casino/ available right here.

Trimiteți un comentariu