Skip to content

Instantly share code, notes, and snippets.

@aaayushsingh
Last active December 11, 2016 13:23
Show Gist options
  • Save aaayushsingh/33577b561f8015437a7b6b3fb5d428d6 to your computer and use it in GitHub Desktop.
Save aaayushsingh/33577b561f8015437a7b6b3fb5d428d6 to your computer and use it in GitHub Desktop.
int[] codefightsTournament(int p, int s) {
return new int[] {(int)(Math.pow(0.5,p)*4000),p==1?2*s:s};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment