結果

問題 No.98 円を描こう
ユーザー kano_townkano_town
提出日時 2014-12-09 23:44:21
言語 Java21
(openjdk 21)
結果
AC  
実行時間 144 ms / 5,000 ms
コード長 340 bytes
コンパイル時間 3,636 ms
コンパイル使用メモリ 72,324 KB
実行使用メモリ 58,220 KB
最終ジャッジ日時 2023-09-02 12:23:01
合計ジャッジ時間 5,357 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 136 ms
56,228 KB
testcase_01 AC 136 ms
56,264 KB
testcase_02 AC 136 ms
54,116 KB
testcase_03 AC 136 ms
58,220 KB
testcase_04 AC 136 ms
55,640 KB
testcase_05 AC 144 ms
55,888 KB
testcase_06 AC 139 ms
55,820 KB
testcase_07 AC 136 ms
55,884 KB
testcase_08 AC 138 ms
55,780 KB
testcase_09 AC 137 ms
56,316 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Yukicoder98 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		double x = sc.nextDouble(), y = sc.nextDouble();
		int res;
		for (res = 1; res <= 30000; res++) {
			if (x * x + y * y < (res/2.0) * (res/2.0)) break;
		}
		System.out.println(res);
	}
}
0