結果
| 問題 | No.172 UFOを捕まえろ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-05-27 14:48:09 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 87 ms / 5,000 ms |
| コード長 | 319 bytes |
| 記録 | |
| コンパイル時間 | 2,650 ms |
| コンパイル使用メモリ | 81,984 KB |
| 実行使用メモリ | 42,280 KB |
| 最終ジャッジ日時 | 2026-05-04 17:06:50 |
| 合計ジャッジ時間 | 6,246 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
import java.util.*;
public class Ufo {
public static void main(String[] arg){
Scanner sc = new Scanner(System.in);
int x,y,r,res;
double temp;
x = sc.nextInt();
y = sc.nextInt();
r = sc.nextInt();
temp = 2 * r / Math.sqrt(2);
res = Math.abs(x)+Math.abs(y)+(int)temp + 1;
System.out.println(res);
}
}