Skip to content

Instantly share code, notes, and snippets.

@eric-wieser
Created January 24, 2012 18:30
Show Gist options
  • Save eric-wieser/1671750 to your computer and use it in GitHub Desktop.
Save eric-wieser/1671750 to your computer and use it in GitHub Desktop.
119 Character solution to Facebook HackerCup problem 3
t,n='HACKERCUP',input()
for i in range(n):s=raw_input();print'Case #%d: %d'%(i+1,min(s.count(l)/t.count(l) for l in t))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment