結果
| 問題 |
No.172 UFOを捕まえろ
|
| コンテスト | |
| ユーザー |
tenten
|
| 提出日時 | 2020-12-07 12:09:13 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 143 ms / 5,000 ms |
| コード長 | 351 bytes |
| コンパイル時間 | 2,093 ms |
| コンパイル使用メモリ | 74,104 KB |
| 実行使用メモリ | 54,364 KB |
| 最終ジャッジ日時 | 2024-09-17 13:51:33 |
| 合計ジャッジ時間 | 6,548 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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