Submission #9394

#TimeUsernameProblemLanguageResultExecution timeMemory
9394YoonVeni, vidi, vici (kriii2_V)C++98
0 / 4
0 ms1096 KiB
#include <stdio.h> #include <string.h> char S[10210]; int N,K; int main() { int i,a,b,c; scanf("%d ",&K); gets(S); N=strlen(S); S[N]=' '; for(i=0;i<N;i++){ if(S[i]==' '){ printf(" "); continue; } else if(S[i+1]==' '){ i++; printf(" "); continue; } a=S[i]-'a';b=S[i+1]-'a'; c=(a+b-K)%26+'a'; printf("%c",c); i++; } printf("\n"); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...