結果
| 問題 |
No.172 UFOを捕まえろ
|
| コンテスト | |
| ユーザー |
samplelpmas
|
| 提出日時 | 2017-01-23 15:50:09 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 126 ms / 5,000 ms |
| コード長 | 376 bytes |
| コンパイル時間 | 2,038 ms |
| コンパイル使用メモリ | 74,032 KB |
| 実行使用メモリ | 41,388 KB |
| 最終ジャッジ日時 | 2024-12-23 07:29:15 |
| 合計ジャッジ時間 | 5,694 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = Math.abs(sc.nextInt());
int y = Math.abs(sc.nextInt());
int radius = sc.nextInt();
int barrier = (int) Math.ceil(x + y + (Math.sqrt(2) * radius));
System.out.println(barrier);
}
}
samplelpmas