Cod sursa(job #878080)
| Utilizator | Data | 13 februarie 2013 21:44:18 | |
|---|---|---|---|
| Problema | Potrivirea sirurilor | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | Arhiva educationala | Marime | 0.52 kb |
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
void redirectInput(const char *in, const char *out)
{
freopen(in, "r", stdin);
//freopen(out, "w", stdout);
}
void solve()
{
string a, b;
cin >> a >> b;
int n = a.length();
int m = b.length();
cout << a << endl << b << endl;
}
int main(int argc, char *argv[])
{
if(argc != 2)
redirectInput("strmatch.in", "strmatch.out");
else
redirectInput(argv[1], "strmatch.out");
solve();
return 0;
}