fork(2) download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. char txt[10000] = "SHOSHIKKHA";
  4. char pat[10000] = "KISUPARINA";
  5.  
  6. int main () {
  7. for (int i=0; i<strlen(txt); i++) txt[i] = ((txt[i]-'A' + pat[i] - 'A')%26 + 'A');
  8. printf("%s\n", txt);
  9. return 0;
  10. }
  11.  
  12.  
Success #stdin #stdout 0s 3484KB
stdin
Standard input is empty
stdout
CPGMWIBSUA