Skip to content

Instantly share code, notes, and snippets.

@rodolfoghi
Created September 12, 2017 19:07
Show Gist options
  • Save rodolfoghi/60a10b52fa141789799fcdf794646527 to your computer and use it in GitHub Desktop.
Save rodolfoghi/60a10b52fa141789799fcdf794646527 to your computer and use it in GitHub Desktop.
using System;
using System.Linq;
class MainClass {
public static void Main (string[] args) {
var numbers = Console.ReadLine()
.Split(' ')
.Select(str => Convert.ToInt32(str))
.ToArray();
if ((numbers[0] + numbers[1] < numbers[2]) || (numbers[0] + numbers[2] < numbers[1]) || (numbers[1] + numbers[2] < numbers[0])) {
Console.WriteLine("N");
} else {
Console.WriteLine("S");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment