Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 19 lines (17 sloc) 0.245 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <stdio.h>

int main() {
long n;
long k;
int p;
while (scanf("%ld", &n) == 1) {
k = 1;
p = 0;
while (k < n) {
k *= (p ? 2 : 9);
p = !p;
}
if (p) printf("Stan wins.\n");
else printf("Ollie wins.\n");
}
return 0;
}
Something went wrong with that request. Please try again.