結果

問題 No.98 円を描こう
ユーザー m2543315647m2543315647
提出日時 2015-05-13 13:09:36
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 5,000 ms
コード長 225 bytes
コンパイル時間 5,755 ms
コンパイル使用メモリ 72,136 KB
実行使用メモリ 55,892 KB
最終ジャッジ日時 2023-09-20 05:12:18
合計ジャッジ時間 5,507 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
55,816 KB
testcase_01 AC 127 ms
55,280 KB
testcase_02 AC 128 ms
55,376 KB
testcase_03 AC 129 ms
55,892 KB
testcase_04 AC 129 ms
55,288 KB
testcase_05 AC 129 ms
55,388 KB
testcase_06 AC 127 ms
55,808 KB
testcase_07 AC 129 ms
55,560 KB
testcase_08 AC 128 ms
55,560 KB
testcase_09 AC 128 ms
55,320 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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