結果
| 問題 | No.172 UFOを捕まえろ |
| コンテスト | |
| ユーザー |
threepipes_s
|
| 提出日時 | 2015-02-13 16:44:00 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 60 ms / 5,000 ms |
| + 997µs | |
| コード長 | 303 bytes |
| 記録 | |
| コンパイル時間 | 1,472 ms |
| コンパイル使用メモリ | 83,752 KB |
| 実行使用メモリ | 43,052 KB |
| 最終ジャッジ日時 | 2026-07-27 16:27:49 |
| 合計ジャッジ時間 | 4,459 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner in = new Scanner(System.in);
double x = Math.abs(in.nextInt());
double y = Math.abs(in.nextInt());
double r = in.nextInt();
System.out.println((int)Math.ceil(x+y+r*Math.sqrt(2)));
in.close();
}
}
threepipes_s