Submission #9201

#TimeUsernameProblemLanguageResultExecution timeMemory
9201myungwooVeni, vidi, vici (kriii2_V)C++98
4 / 4
0 ms1196 KiB
#include<stdio.h> char str[111111]; int n; int main(){ int i; scanf("%d\n", &n); gets(str); for(i=0;; i+=2){ if(str[i] == 0 || str[i+1] == 0)break; if(str[i] == ' '){ printf(" "); i--; } else if(str[i+1] == ' ')printf(" "); else printf("%c", (str[i]+str[i+1]-2*'a'-n+26)%26 + 'a'); } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...