#include <stdio.h>
#include <string.h>
char a[110];
int main(){
int i,n,m;
scanf("%d",&n);
while(scanf("%s",a)==1){
m=strlen(a);
for(i=1;i<m;i+=2)printf("%c",97+(a[i-1]+a[i]-194-n)%26);
printf(" ");
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
1084 KB |
Output is correct |
2 |
Correct |
0 ms |
1084 KB |
Output is correct |
3 |
Correct |
0 ms |
1084 KB |
Output is correct |
4 |
Correct |
0 ms |
1084 KB |
Output is correct |
5 |
Correct |
0 ms |
1084 KB |
Output is correct |
6 |
Correct |
0 ms |
1084 KB |
Output is correct |
7 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
8 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Halted |
0 ms |
0 KB |
- |