Created
June 24, 2020 19:10
-
-
Save freeman42x/2d5bdd346a1e82a49a5c6ba02925829f to your computer and use it in GitHub Desktop.
Clash of Code shortest mode
This file contains hidden or 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
import Data.Char | |
import Data.Function | |
import Data.List | |
import Data.Maybe | |
main=interact$p | |
p s=fromJust$find(\z->((==)`on`(sort.map toLower)) z w)l | |
where(_:w:l)=lines s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment