結果

問題 No.98 円を描こう
ユーザー kano_townkano_town
提出日時 2014-12-09 23:43:16
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 340 bytes
コンパイル時間 3,571 ms
コンパイル使用メモリ 73,048 KB
実行使用メモリ 56,448 KB
最終ジャッジ日時 2023-09-02 12:22:41
合計ジャッジ時間 5,400 ms
ジャッジサーバーID
(参考情報)
judge13 / judge16
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 140 ms
56,004 KB
testcase_01 AC 140 ms
56,008 KB
testcase_02 AC 141 ms
56,068 KB
testcase_03 AC 142 ms
56,168 KB
testcase_04 AC 138 ms
56,232 KB
testcase_05 AC 138 ms
56,180 KB
testcase_06 AC 139 ms
56,448 KB
testcase_07 AC 139 ms
56,056 KB
testcase_08 WA -
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

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 <= 20001; res++) {
			if (x * x + y * y < (res/2.0) * (res/2.0)) break;
		}
		System.out.println(res);
	}
}
0