Submission #9357

#TimeUsernameProblemLanguageResultExecution timeMemory
9357jwvg0425Veni, vidi, vici (kriii2_V)C++98
0 / 4
0 ms1088 KiB
#include<stdio.h> #include<string.h> int main(void) { char string[20000]; int n; int length; scanf("%d\n", &n); gets(string); length = strlen(string); for (int i = 0; i < length; i+=2) { if (string[i] == ' ' || string[i + 1] == ' ') { printf(" "); if (string[i] == ' ') i = i - 1; continue; } printf("%c", 'a' + ((string[i] - 'a' + string[i + 1] - 'a'-n)%26)); } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...