結果

問題 No.98 円を描こう
ユーザー yagi2yagi2
提出日時 2017-04-25 12:28:32
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 282 bytes
コンパイル時間 1,950 ms
コンパイル使用メモリ 72,260 KB
実行使用メモリ 57,972 KB
最終ジャッジ日時 2023-10-11 09:30:50
合計ジャッジ時間 3,956 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
55,868 KB
testcase_01 AC 116 ms
55,792 KB
testcase_02 WA -
testcase_03 AC 116 ms
55,756 KB
testcase_04 WA -
testcase_05 AC 116 ms
56,416 KB
testcase_06 AC 116 ms
55,432 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 117 ms
55,720 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 + 1);
    }
}
0