Submission #9802

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
98022014-09-28 09:00:01ksmail12Veni, vidi, vici (kriii2_V)C++98
0 / 4
0 ms1676 KiB
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main() {
int n;
char buf[11000];
cin >> n;
getchar();
//cin.getline(buf, 11000);
fgets(buf, 11000, stdin);
int len = strlen(buf);
for (int i=0;i<len;i+=2) {
char a=buf[i],b = buf[i+1];
if(a==' '){
printf(" ");
i++;
a = buf[i];
b = buf[i+1];
}
//cout << b;
if('a'<=b && b<='z') {
char temp = (a-'a')+(b-'a')-n;
if(temp <0) temp += 26;
printf("%c", ((temp)%26)+'a');
}
else if(b==' '){
printf(" ");
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...