結果
| 問題 |
No.172 UFOを捕まえろ
|
| コンテスト | |
| ユーザー |
uafr_cs
|
| 提出日時 | 2015-05-15 18:35:43 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 136 ms / 5,000 ms |
| コード長 | 500 bytes |
| コンパイル時間 | 2,106 ms |
| コンパイル使用メモリ | 73,708 KB |
| 実行使用メモリ | 41,452 KB |
| 最終ジャッジ日時 | 2024-10-15 14:09:14 |
| 合計ジャッジ時間 | 6,149 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner sc = new Scanner(System.in);
final int x = sc.nextInt();
final int y = sc.nextInt();
final int r = sc.nextInt();
System.out.println((int) (Math.abs(x) + Math.abs(y) + Math.ceil(r * Math.sqrt(2))));
}
}
uafr_cs