結果
| 問題 |
No.172 UFOを捕まえろ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-05-27 14:48:09 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 135 ms / 5,000 ms |
| コード長 | 319 bytes |
| コンパイル時間 | 3,323 ms |
| コンパイル使用メモリ | 73,772 KB |
| 実行使用メモリ | 41,588 KB |
| 最終ジャッジ日時 | 2024-10-15 14:10:15 |
| 合計ジャッジ時間 | 7,420 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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);
}
}