結果
| 問題 | No.172 UFOを捕まえろ |
| コンテスト | |
| ユーザー |
tenten
|
| 提出日時 | 2020-12-07 12:09:13 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 57 ms / 5,000 ms |
| コード長 | 351 bytes |
| 記録 | |
| コンパイル時間 | 4,917 ms |
| コンパイル使用メモリ | 81,004 KB |
| 実行使用メモリ | 41,840 KB |
| 最終ジャッジ日時 | 2026-04-06 07:48:15 |
| 合計ジャッジ時間 | 7,083 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
import java.util.*;
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 r = sc.nextInt();
int times = (int)Math.ceil(r / (Math.sqrt(2) / 2));
System.out.println(x + y + times);
}
}
tenten