|
|
вернуться в форумwhy wrong answer? Послано Freddy 8 авг 2011 20:59 import java.util.Scanner; public class Ural{
public static void main(String[] args) { int n=0; int k=0; int result=0; Scanner in=new Scanner(System.in); n=in.nextInt();//zakaz k=in.nextInt(); while(n>k) { n-=k; result+=2; } if(n<k) { result+=1; }
System.out.println(result); } } programm work fine but timus not accept(( Re: why wrong answer? Послано Freddy 8 авг 2011 21:00 and what he mean wrong answer? |
|
|