Submission #15166

#TimeUsernameProblemLanguageResultExecution timeMemory
15166gs14004Veni, vidi, vici (kriii2_V)C++14
4 / 4
0 ms1084 KiB
#include <cstdio> #include <cstring> int main(){ int n; scanf("%d",&n); n = 26 - n; char str[105] = {}; while(~scanf("%s",str)){ for(int j=0; str[j+1]; j+=2){ int p = 1 * str[j] + 1 *str[j+1] + n - 'a' - 'a'; p %= 26; putchar(p + 'a'); } putchar(' '); memset(str,0,sizeof(str)); } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...