Submission #9197

#TimeUsernameProblemLanguageResultExecution timeMemory
9197myungwooVeni, vidi, vici (kriii2_V)C++98
1 / 4
0 ms1088 KiB
#include<stdio.h> char str[111]; 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...