結果

問題 No.98 円を描こう
ユーザー Mcpu3Mcpu3
提出日時 2018-10-03 17:34:50
言語 Java21
(openjdk 21)
結果
AC  
実行時間 131 ms / 5,000 ms
コード長 277 bytes
コンパイル時間 1,943 ms
コンパイル使用メモリ 74,160 KB
実行使用メモリ 54,444 KB
最終ジャッジ日時 2024-04-20 14:47:48
合計ジャッジ時間 3,778 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
53,964 KB
testcase_01 AC 128 ms
53,932 KB
testcase_02 AC 131 ms
54,152 KB
testcase_03 AC 128 ms
54,332 KB
testcase_04 AC 128 ms
53,848 KB
testcase_05 AC 117 ms
53,016 KB
testcase_06 AC 130 ms
54,444 KB
testcase_07 AC 117 ms
53,736 KB
testcase_08 AC 126 ms
54,124 KB
testcase_09 AC 113 ms
52,900 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int Xp = sc.nextInt(), Yp = sc.nextInt();
        sc.close();
        System.out.print((int)(Math.hypot(Xp, Yp) * 2 + 1));
    }
}
0