#include <stdio.h>
#include <iostream>
#include <string>
using namespace std;
int main()
{
int n;
string a;
scanf("%d", &n);
getc(stdin);
while(getline(cin, a)){
for(int i = 0 ; i < a.length() ; i+=2){
if(a[i] == 32){i++;printf(" ");}
else if(a[i+1] == 32){printf(" ");continue;}
printf("%c",(a[i] - 97 + a[i+1] -97 - n)%26 + 97);
}
printf("\n");
}
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
1676 KB |
Output is correct |
2 |
Correct |
0 ms |
1676 KB |
Output is correct |
3 |
Incorrect |
0 ms |
1676 KB |
Output isn't correct |
4 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Halted |
0 ms |
0 KB |
- |