Cod sursa(job #2474610)
Utilizator | Data | 15 octombrie 2019 16:45:03 | |
---|---|---|---|
Problema | Factorial | Scor | 0 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.35 kb |
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int t,n,a;
string x;
int main()
{
fin>>t;
for(int i=1;i<=t;i++){
fin>>n;
for(int j=0;j<n;j++){
fin>>x;
if(x[j]=='0')
fout<<'1';
else fout<<'0';
}
fout<<'\n';
}
}