Skip to content

Instantly share code, notes, and snippets.

@sakapon
Created December 14, 2019 11:06
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/1b0cc3ec9b9f5efd3c66afda6d7ac750 to your computer and use it in GitHub Desktop.
Save sakapon/1b0cc3ec9b9f5efd3c66afda6d7ac750 to your computer and use it in GitHub Desktop.
sumitrust2019 B - Tax Rate (2)
using System;
class B
{
static void Main()
{
var n = int.Parse(Console.ReadLine());
var x = Math.Ceiling(n / 1.08);
Console.WriteLine((int)(1.08 * x) == n ? $"{x}" : ":(");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment