結果

問題 No.172 UFOを捕まえろ
ユーザー fal_rndfal_rnd
提出日時 2018-04-18 09:09:17
言語 Java21
(openjdk 21)
結果
AC  
実行時間 119 ms / 5,000 ms
コード長 320 bytes
コンパイル時間 2,111 ms
コンパイル使用メモリ 71,980 KB
実行使用メモリ 56,084 KB
最終ジャッジ日時 2023-09-09 11:19:51
合計ジャッジ時間 6,157 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
55,760 KB
testcase_01 AC 117 ms
56,084 KB
testcase_02 AC 117 ms
55,964 KB
testcase_03 AC 117 ms
56,048 KB
testcase_04 AC 117 ms
55,576 KB
testcase_05 AC 115 ms
55,440 KB
testcase_06 AC 119 ms
55,616 KB
testcase_07 AC 117 ms
55,728 KB
testcase_08 AC 116 ms
55,692 KB
testcase_09 AC 116 ms
55,624 KB
testcase_10 AC 116 ms
55,796 KB
testcase_11 AC 116 ms
55,640 KB
testcase_12 AC 116 ms
55,344 KB
testcase_13 AC 116 ms
55,672 KB
testcase_14 AC 116 ms
55,760 KB
testcase_15 AC 115 ms
55,816 KB
testcase_16 AC 114 ms
55,472 KB
testcase_17 AC 114 ms
55,684 KB
testcase_18 AC 116 ms
55,400 KB
testcase_19 AC 117 ms
55,780 KB
testcase_20 AC 116 ms
55,876 KB
testcase_21 AC 115 ms
55,492 KB
testcase_22 AC 114 ms
55,568 KB
testcase_23 AC 115 ms
55,336 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.util.stream.*;
class Main {
    static Scanner s=new Scanner(System.in);
    static int gInt(){return Integer.parseInt(s.next());}
    public static void main(String[]$){
        System.out.println((int)Math.ceil(Math.abs(gInt())+Math.abs(gInt())+Math.sqrt(2)*Math.abs(gInt())));
    }
}
0