結果

問題 No.98 円を描こう
ユーザー ffmm00ffmm00
提出日時 2015-06-20 01:44:00
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 5,000 ms
コード長 273 bytes
コンパイル時間 3,257 ms
コンパイル使用メモリ 72,592 KB
実行使用メモリ 56,216 KB
最終ジャッジ日時 2023-09-21 10:29:14
合計ジャッジ時間 5,683 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
56,216 KB
testcase_01 AC 127 ms
55,568 KB
testcase_02 AC 127 ms
55,532 KB
testcase_03 AC 126 ms
55,884 KB
testcase_04 AC 128 ms
55,880 KB
testcase_05 AC 124 ms
55,580 KB
testcase_06 AC 123 ms
55,860 KB
testcase_07 AC 126 ms
55,812 KB
testcase_08 AC 127 ms
55,996 KB
testcase_09 AC 125 ms
55,580 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class N98 {

	public static void main(String[] args) {

		Scanner sca = new Scanner(System.in);

		double x = sca.nextInt();
		double y = sca.nextInt();

		double A = Math.sqrt(x * x + y * y) * 2;

		System.out.println((int) A + 1);

	}

}
0