結果

問題 No.98 円を描こう
ユーザー l1267976l1267976
提出日時 2017-03-19 14:55:52
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 393 bytes
コンパイル時間 3,603 ms
コンパイル使用メモリ 72,400 KB
実行使用メモリ 56,636 KB
最終ジャッジ日時 2023-09-18 07:27:24
合計ジャッジ時間 5,891 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
55,984 KB
testcase_01 AC 132 ms
55,860 KB
testcase_02 AC 129 ms
56,636 KB
testcase_03 AC 132 ms
56,508 KB
testcase_04 WA -
testcase_05 AC 133 ms
56,364 KB
testcase_06 AC 133 ms
56,488 KB
testcase_07 AC 131 ms
55,872 KB
testcase_08 AC 131 ms
55,712 KB
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No98 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double x = sc.nextDouble();
        double y = sc.nextDouble();

        double hypo = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
        hypo = Math.ceil((hypo * 2) + 0.5d);

        System.out.println((int) hypo);

        sc.close();
    }

}
0