結果

問題 No.98 円を描こう
ユーザー kou6839
提出日時 2014-12-12 16:01:29
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 395 bytes
コンパイル時間 1,813 ms
コンパイル使用メモリ 74,276 KB
実行使用メモリ 56,048 KB
最終ジャッジ日時 2024-06-11 21:00:54
合計ジャッジ時間 3,524 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 1 WA * 5
権限があれば一括ダウンロードができます

ソースコード

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