結果

問題 No.98 円を描こう
ユーザー fukuseifukusei
提出日時 2017-05-17 17:33:22
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 253 bytes
コンパイル時間 4,053 ms
コンパイル使用メモリ 74,304 KB
実行使用メモリ 57,696 KB
最終ジャッジ日時 2023-10-17 23:57:18
合計ジャッジ時間 5,354 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
57,436 KB
testcase_01 AC 131 ms
57,556 KB
testcase_02 WA -
testcase_03 AC 131 ms
57,540 KB
testcase_04 WA -
testcase_05 AC 129 ms
57,696 KB
testcase_06 AC 129 ms
57,544 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 131 ms
55,520 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*; 

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