fork(1) download
  1. // iostream is too mainstream
  2. #include <cstdio>
  3. // bitch please
  4. #include <iostream>
  5. #include <vector>
  6. #include <set>
  7. #include <map>
  8. #include <string>
  9. #include <queue>
  10. #include <stack>
  11. #include <algorithm>
  12. #include <iomanip>
  13. #define dibs reserve
  14. #define OVER9000 1234567890
  15. #define patkan 9
  16. #define tisic 47
  17. #define soclose 10e-7
  18. #define ALL_THE(CAKE,LIE) for(auto LIE =CAKE.begin(); LIE != CAKE.end(); LIE++)
  19. #define chocolate win
  20. #define ff first
  21. #define ss second
  22. #define abs(x) ((x < 0)?-(x):(x))
  23. // mylittlepony
  24. using namespace std;
  25.  
  26.  
  27. int main() {
  28. cin.sync_with_stdio(0);
  29. int N;
  30. cin >> N;
  31. string a[3];
  32. cin >> a[0] >> a[1] >> a[2];
  33. for(int i =0; i < N; i++) {
  34. if(a[0][i] == a[1][i]) {cout << a[0][i]; continue;}
  35. if(a[1][i] == a[2][i]) {cout << a[1][i]; continue;}
  36. cout << a[0][i];}
  37. cout << "\n";
  38. return 0;}
  39.  
  40. // look at my code
  41. // my code is amazing
Success #stdin #stdout 0s 3432KB
stdin
6
turkey
needle
bottle
stdout
turkle