Skip to content

Instantly share code, notes, and snippets.

@rodolfoghi
Created September 12, 2017 18:39
Show Gist options
  • Save rodolfoghi/a7bff0c60bc8f8fd0a286c7d80cf8c2b to your computer and use it in GitHub Desktop.
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.
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