Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C# by registered user Cryst94 ( 14 years ago )
using System;
namespace _1820
{
class Program
{
static void Main(string[] args)
{
string[] tokens = Console.ReadLine().Split(' ');
int n = int.Parse(tokens[0]);
int k = int.Parse(tokens[1]);
if ((n>=1)&&(k<=1000))
{
int f = 2 * n % k;
if (f == 0)
{
Console.WriteLine(2 * n / k);
}
else
{
Console.WriteLine(2 * n / k + 1);
}
}
}
}
}
Revise this Paste
Parent: 45634
Children: 45637