ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1820. Ural Steaks

What's wrong С# ??????
Posted by CacTuSx09 23 Jan 2013 20:04
using System;


namespace ConsoleApplication5
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] A = Console.ReadLine().Split(' ');
          float a = int.Parse(A[0]);
          float b = int.Parse(A[1]);
          if (a <= b)
              Console.WriteLine(2);
          else
              Console.WriteLine("{0:#}",a/b*2);
        }
    }
}
Re: What's wrong С# ??????
Posted by morbidel 24 Jan 2013 20:39
your formula is not correct, think of more cases
Re: What's wrong С# ??????
Posted by wangxiaobo 5 Feb 2013 13:54
5 3
the answer is 4
Re: What's wrong С# ??????
Posted by Charles Mei 21 Jul 2013 00:04
ceil(a/b*2)