Created
September 12, 2017 18:39
-
-
Save rodolfoghi/a7bff0c60bc8f8fd0a286c7d80cf8c2b to your computer and use it in GitHub Desktop.
Problema A: Andando no tempo Maratona de Programação da SBC – ACM ICPC – 2016.
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
var numbers = window.prompt().split(' ').map(function(x){ | |
return parseInt(x); | |
}); | |
if ((numbers[0] + numbers[1] < numbers[2]) || (numbers[0] + numbers[2] < numbers[1]) || (numbers[1] + numbers[2] < numbers[0])) { | |
alert("N"); | |
} else { | |
alert("S"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment