結果

問題 No.172 UFOを捕まえろ
ユーザー shinwisteria
提出日時 2019-03-17 16:00:29
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 309 bytes
コンパイル時間 3,603 ms
コンパイル使用メモリ 78,336 KB
実行使用メモリ 54,532 KB
最終ジャッジ日時 2024-07-06 22:22:12
合計ジャッジ時間 7,788 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

package m.shin.level1;
import java.util.Scanner;

public class No172 {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int x = Math.abs(s.nextInt()) , y = Math.abs(s.nextInt()) , r = s.nextInt();
		s.close();

		System.out.println(Math.ceil(x + y + Math.sqrt(2)*r));

	}

}
0