Pagini recente » Borderou de evaluare (job #779179) | Borderou de evaluare (job #440037) | Cod sursa (job #878080)
Cod sursa(job #878080)
#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;
}