Submission #9402

#TimeUsernameProblemLanguageResultExecution timeMemory
9402YoonVeni, 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); for(i=0;i<N;i++){ if(S[i]==' '){ printf(" "); continue; } else if(S[i+1]==' '){ i++; printf(" "); continue; } else if(S[i+1]==0)break; 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...