Skip to content

Instantly share code, notes, and snippets.

@nullableVoidPtr
Last active July 11, 2020 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nullableVoidPtr/30761ceb360aded9935d94fb3e066a7f to your computer and use it in GitHub Desktop.
Save nullableVoidPtr/30761ceb360aded9935d94fb3e066a7f to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
int main(void) {
char s[12] = {0};
int i = 12;
long long N;
for (scanf("%lld", &N); N; s[--i] = 'a' + (--N % 26), N /= 26);
printf("%s\n", &s[i]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment