結果

問題 No.48 ロボットの操縦
ユーザー m2543315647
提出日時 2015-05-14 14:47:24
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 298 bytes
コンパイル時間 3,183 ms
コンパイル使用メモリ 74,084 KB
実行使用メモリ 41,580 KB
最終ジャッジ日時 2024-07-06 03:36:43
合計ジャッジ時間 6,049 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class No48 {
	public static void main (String[] args){
	Scanner sc =new Scanner(System.in);
	int x=sc.nextInt();
	int y=sc.nextInt();
	int l=sc.nextInt();
	System.out.println((x!=0?Math.abs(x/l)+1:0)+(y==0?0:y>0?y/l:Math.abs(y/l)+2)+(x%l==0?0:1)+(y%l==0?0:1));
	}
}
0