Created
January 24, 2012 18:30
-
-
Save eric-wieser/1671750 to your computer and use it in GitHub Desktop.
119 Character solution to Facebook HackerCup problem 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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