Cod sursa(job #588671)
Utilizator | Data | 9 mai 2011 08:21:50 | |
---|---|---|---|
Problema | Parcurgere DFS - componente conexe | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva educationala | Marime | 0.21 kb |
#include <fstream>
using namespace std;
int main ()
{
int N,M;
fstream f,g;
f.open("dfs.in",ios::in);
f>>N>>M;
f.close();
g.open("dfs.out",ios::out);
g<<M;
g.close();
}