結果

問題 No.98 円を描こう
ユーザー kou6839kou6839
提出日時 2014-12-12 16:01:29
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 395 bytes
コンパイル時間 2,195 ms
コンパイル使用メモリ 71,332 KB
実行使用メモリ 55,992 KB
最終ジャッジ日時 2023-09-02 14:22:44
合計ジャッジ時間 3,992 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,716 KB
testcase_01 AC 127 ms
55,756 KB
testcase_02 WA -
testcase_03 AC 126 ms
55,700 KB
testcase_04 WA -
testcase_05 AC 124 ms
55,332 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.*;
import java.util.*;
 
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int x = sc.nextInt();
        int y = sc.nextInt();
        for(int i=1;;i++){
        	if(i*1.0/2>Math.ceil(Math.sqrt(x*x*1.0+y*y*1.0))){
        		System.out.println(i);
        		return;
        	}
        }
    }
}		
0