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

WA #8 java
Posted by mehdi_wm 10 Feb 2015 18:56

import static java.lang.Math.*;
import java.util.*;

public class UralSteaks {

    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        int n,k;
        n=in.nextInt();
        k=in.nextInt();
        int t=(int)ceil(2*(float)n / (float)k);
        System.out.print(t);
    }

}
help plz!
Re: WA #8 java
Posted by Эдуард 27 Jun 2015 18:24
check
1 2.
Re: WA #8 java
Posted by daixinyan 3 Apr 2016 12:09
what if input 1,5
Re: WA #8 java
Posted by Leftbot 23 Jan 2017 20:07
Thanks