結果

問題 No.98 円を描こう
ユーザー yagi2yagi2
提出日時 2017-04-25 12:29:54
言語 Java21
(openjdk 21)
結果
AC  
実行時間 119 ms / 5,000 ms
コード長 286 bytes
コンパイル時間 2,074 ms
コンパイル使用メモリ 72,832 KB
実行使用メモリ 56,280 KB
最終ジャッジ日時 2023-10-11 09:31:00
合計ジャッジ時間 3,969 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
55,772 KB
testcase_01 AC 116 ms
55,812 KB
testcase_02 AC 119 ms
55,720 KB
testcase_03 AC 119 ms
55,636 KB
testcase_04 AC 117 ms
55,912 KB
testcase_05 AC 117 ms
54,020 KB
testcase_06 AC 117 ms
55,760 KB
testcase_07 AC 116 ms
56,280 KB
testcase_08 AC 119 ms
55,412 KB
testcase_09 AC 118 ms
55,896 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println((int)(Math.sqrt(Math.pow(Integer.parseInt(sc.next()), 2) + Math.pow(Integer.parseInt(sc.next()), 2)) * 2.0) + 1);
    }
}
0