Created
August 23, 2013 07:11
-
-
Save djadmin/6316379 to your computer and use it in GitHub Desktop.
Hackerrank's hackerrank-language Problem
https://www.hackerrank.com/challenges/hackerrank-language
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
languages=['C','CPP','JAVA','PYTHON','PERL','PHP','RUBY','CSHARP','HASKELL','CLOJURE','BASH','SCALA','ERLANG','CLISP','LUA','BRAINFUCK','JAVASCRIPT','GO','D','OCAML','R','PASCAL','SBCL','DART','GROOVY','OBJECTIVEC'] | |
for i in xrange(input()): | |
input=str(raw_input()).split() | |
language=input[1] | |
if language in languages: | |
print 'VALID' | |
else: | |
print 'INVALID' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment