結果

問題 No.98 円を描こう
ユーザー rf141rf141
提出日時 2015-08-06 01:26:11
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 5,000 ms
コード長 260 bytes
コンパイル時間 3,164 ms
コンパイル使用メモリ 72,512 KB
実行使用メモリ 56,052 KB
最終ジャッジ日時 2023-09-25 04:07:12
合計ジャッジ時間 5,229 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,964 KB
testcase_01 AC 125 ms
56,052 KB
testcase_02 AC 125 ms
55,964 KB
testcase_03 AC 124 ms
55,732 KB
testcase_04 AC 124 ms
55,900 KB
testcase_05 AC 125 ms
55,716 KB
testcase_06 AC 124 ms
55,424 KB
testcase_07 AC 123 ms
55,324 KB
testcase_08 AC 123 ms
55,716 KB
testcase_09 AC 123 ms
55,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class draw{
	public static void main(String... args){
		Scanner scan = new Scanner(System.in);
		int x = scan.nextInt(),y = scan.nextInt();
		int xx = x*x,yy = y*y;
		double r= Math.sqrt(xx+yy)*2;
		System.out.println((int)r+1);
	}
}
0