Submission #9417

#TimeUsernameProblemLanguageResultExecution timeMemory
9417YesUjamVeni, vidi, vici (kriii2_V)C++98
0 / 4
0 ms1092 KiB
#include<cstdio> #include<cstring> char str[11111]; int main() { int n; scanf("%d", &n); getchar(); gets(str); char *pch; pch = strtok(str, " "); while(pch!=NULL){ char tmp[111]; int len; sprintf(tmp,"%s", pch); len = strlen(tmp); for(int i=0;i<len;i+=2){ if(tmp[i+1] !='\0') printf("%c", (tmp[i]-'a'+tmp[i+1]-'a' - 2)%26 + 'a'); } printf(" "); pch = strtok(NULL, " "); } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...