結果
| 問題 |
No.172 UFOを捕まえろ
|
| コンテスト | |
| ユーザー |
threepipes_s
|
| 提出日時 | 2015-02-13 16:44:00 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 134 ms / 5,000 ms |
| コード長 | 303 bytes |
| コンパイル時間 | 2,166 ms |
| コンパイル使用メモリ | 73,672 KB |
| 実行使用メモリ | 41,404 KB |
| 最終ジャッジ日時 | 2024-10-15 13:51:47 |
| 合計ジャッジ時間 | 6,336 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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