結果

問題 No.98 円を描こう
ユーザー tsunabittsunabit
提出日時 2018-09-16 15:44:08
言語 Java19
(openjdk 21)
結果
AC  
実行時間 149 ms / 5,000 ms
コード長 372 bytes
コンパイル時間 3,484 ms
コンパイル使用メモリ 72,432 KB
実行使用メモリ 56,280 KB
最終ジャッジ日時 2023-09-25 09:00:06
合計ジャッジ時間 5,737 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 142 ms
56,024 KB
testcase_01 AC 143 ms
56,104 KB
testcase_02 AC 144 ms
56,280 KB
testcase_03 AC 148 ms
56,036 KB
testcase_04 AC 144 ms
56,160 KB
testcase_05 AC 142 ms
56,200 KB
testcase_06 AC 144 ms
56,088 KB
testcase_07 AC 149 ms
56,028 KB
testcase_08 AC 143 ms
55,736 KB
testcase_09 AC 148 ms
55,696 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.util.stream.Stream;
import java.time.*;
import java.time.format.*;

public class No98 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double x = sc.nextDouble();
        double y = sc.nextDouble(); 
        System.out.println((int)(Math.sqrt(Math.pow(x,2) + Math.pow(y,2)) * 2 + 1));
	}
}
0