Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Hackerrank's hackerrank-language Problem https://www.hackerrank.com/challenges/hackerrank-language
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