이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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");
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |