Skip to main content
Fixed the program, added analysis of success
Source Link

C (32bit only)

int main(int aac, char *b*av) {
    scanf("%d\n%d", &a&ac, &b&av);
    return printf("%d\n", a[b]&av[ac]);
}

Pointer arithmetic is just as good.
How does it match the requirements?

  • No + or -
  • No /, =, ., 0-9
  • Only 3 pairs of parenthesis, which seems to me minimal (you need main, scanf, printf).
  • One * (the pointer approach requires it).
  • Four , (could save one by defining normal variables, not ac,av)

C (32bit only)

int main(int a, char *b) {
    scanf("%d\n%d", &a, &b);
    printf("%d\n", a[b]);
}

Pointer arithmetic is just as good.

C (32bit only)

int main(int ac, char *av) {
    scanf("%d\n%d", &ac, &av);
    return printf("%d\n", &av[ac]);
}

Pointer arithmetic is just as good.
How does it match the requirements?

  • No + or -
  • No /, =, ., 0-9
  • Only 3 pairs of parenthesis, which seems to me minimal (you need main, scanf, printf).
  • One * (the pointer approach requires it).
  • Four , (could save one by defining normal variables, not ac,av)
Source Link

C (32bit only)

int main(int a, char *b) {
    scanf("%d\n%d", &a, &b);
    printf("%d\n", a[b]);
}

Pointer arithmetic is just as good.