Skip to content

Instantly share code, notes, and snippets.

@sakapon
Created December 14, 2019 23:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sakapon/c0772ce205f52dfd92c5d8d2713395e2 to your computer and use it in GitHub Desktop.
Save sakapon/c0772ce205f52dfd92c5d8d2713395e2 to your computer and use it in GitHub Desktop.
sumitrust2019 C - 100 to 105 (1)
using System;
using System.Linq;
class C
{
static void Main()
{
var x = int.Parse(Console.ReadLine());
Console.WriteLine(Enumerable.Range(1, 1000).Any(i => 100 * i <= x && x <= 105 * i) ? 1 : 0);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment