結果

問題 No.98 円を描こう
ユーザー dazydazy
提出日時 2016-09-10 02:32:26
言語 Java21
(openjdk 21)
結果
AC  
実行時間 117 ms / 5,000 ms
コード長 336 bytes
コンパイル時間 2,829 ms
コンパイル使用メモリ 75,932 KB
実行使用メモリ 41,572 KB
最終ジャッジ日時 2024-04-28 06:30:41
合計ジャッジ時間 4,818 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 105 ms
41,128 KB
testcase_01 AC 110 ms
41,436 KB
testcase_02 AC 114 ms
41,208 KB
testcase_03 AC 117 ms
41,120 KB
testcase_04 AC 100 ms
40,324 KB
testcase_05 AC 100 ms
40,396 KB
testcase_06 AC 108 ms
41,336 KB
testcase_07 AC 106 ms
41,572 KB
testcase_08 AC 108 ms
41,404 KB
testcase_09 AC 106 ms
40,912 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Run {
    public static void main (String arg[]) {
        Scanner scan = new Scanner(System.in);
        double X = scan.nextInt();
        double Y = scan.nextInt();
        int ans;

        ans = (int) (Math.pow(Math.pow(X, 2)+Math.pow(Y, 2), 0.5) * 2);
        System.out.println(ans + 1);
    }
}
0