結果

問題 No.98 円を描こう
ユーザー Mcpu3Mcpu3
提出日時 2018-10-03 17:31:08
言語 Java21
(openjdk 21)
結果
AC  
実行時間 132 ms / 5,000 ms
コード長 273 bytes
コンパイル時間 2,403 ms
コンパイル使用メモリ 74,348 KB
実行使用メモリ 54,340 KB
最終ジャッジ日時 2024-04-20 14:47:42
合計ジャッジ時間 3,935 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
54,288 KB
testcase_01 AC 127 ms
54,164 KB
testcase_02 AC 129 ms
54,276 KB
testcase_03 AC 130 ms
54,144 KB
testcase_04 AC 129 ms
54,252 KB
testcase_05 AC 130 ms
54,088 KB
testcase_06 AC 128 ms
53,824 KB
testcase_07 AC 130 ms
54,340 KB
testcase_08 AC 131 ms
54,288 KB
testcase_09 AC 129 ms
54,200 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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