Skip to content

Instantly share code, notes, and snippets.

@TheoKlein
Last active February 27, 2016 03:32
Show Gist options
  • Select an option

  • Save TheoKlein/3acfd234d216a58b3360 to your computer and use it in GitHub Desktop.

Select an option

Save TheoKlein/3acfd234d216a58b3360 to your computer and use it in GitHub Desktop.
ZeroJudge_a009_C
#include <stdio.h>
#include <string.h>
//input - 7 = output
int main (){
char str[100000];
while(gets(str)!=NULL){
int i, leng;
leng = strlen(str);
for( i = 0 ; i < leng ; i ++)
str[i] -= 7;
printf("%s\n",str);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment