Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include
- #include
- using namespace std;
- int n,a[105][105],viz[105],m;
- void citire()
- {
- int x,y;
- cin>>n>>m;
- for(int i=1;i>x>>y;
- a[x][y]=1;
- }
- }
- void dfs(int x)
- {
- viz[x]=1;
- for(int i=1;i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement