587
Enunt eliminat la cererea autorului.
Exemplu
atbash.in
ANAAREMERE
atbash.out
ZMZZIVNVIV
#include <bits/stdc++.h>
using namespace std;
ifstream cin("atbash.in");
ofstream cout("atbash.out");
char ch;
int main()
{
while(cin >> ch)
cout << (char)('Z' - ch + 'A');
return 0;
}
Comentarii