結果
| 問題 | No.48 ロボットの操縦 |
| コンテスト | |
| ユーザー |
ieneko18
|
| 提出日時 | 2016-11-28 15:04:51 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 307 bytes |
| 記録 | |
| コンパイル時間 | 1,802 ms |
| コンパイル使用メモリ | 81,612 KB |
| 実行使用メモリ | 42,604 KB |
| 最終ジャッジ日時 | 2026-05-21 19:07:20 |
| 合計ジャッジ時間 | 5,056 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 WA * 19 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int x=sc.nextInt();
int y=sc.nextInt();
int l=sc.nextInt();
int n=0;
if(y<0)n=2;
else if(x!=0)n=1;
System.out.println(Math.abs((x+l-1)/l)+Math.abs((y+l-1)/l)+n);
}
}
ieneko18