結果

問題 No.98 円を描こう
ユーザー YatsukuYatsuku
提出日時 2015-12-16 17:06:49
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 5,000 ms
コード長 372 bytes
コンパイル時間 1,902 ms
コンパイル使用メモリ 70,920 KB
実行使用メモリ 56,704 KB
最終ジャッジ日時 2023-10-14 10:49:16
合計ジャッジ時間 3,798 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
56,024 KB
testcase_01 AC 119 ms
55,896 KB
testcase_02 AC 120 ms
55,400 KB
testcase_03 AC 121 ms
55,752 KB
testcase_04 AC 121 ms
56,340 KB
testcase_05 AC 121 ms
56,704 KB
testcase_06 AC 121 ms
56,136 KB
testcase_07 AC 121 ms
56,152 KB
testcase_08 AC 121 ms
55,900 KB
testcase_09 AC 121 ms
55,564 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class No_98 {
	public static void main(String args[]) {
		Scanner stdIn = new Scanner(System.in);		
		int xaxis = stdIn.nextInt();
		int yaxis = stdIn.nextInt();

		double len = Math.pow(xaxis, 2) + Math.pow(yaxis, 2);
		len = Math.sqrt(len);

		for (int i = 0; ; i++) {
			if (len * 2 < i) {
				System.out.println(i);
				break;
			}
		}
	}
}
0