Submission #15165

#TimeUsernameProblemLanguageResultExecution timeMemory
15165gs14004Veni, vidi, vici (kriii2_V)C++14
1 / 4
0 ms1084 KiB
#include <cstdio> 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(' '); } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...