結果
| 問題 | 
                            No.98 円を描こう
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2015-08-06 01:24:00 | 
| 言語 | Java  (openjdk 23)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 345 bytes | 
| コンパイル時間 | 3,776 ms | 
| コンパイル使用メモリ | 77,264 KB | 
| 実行使用メモリ | 41,352 KB | 
| 最終ジャッジ日時 | 2024-07-18 03:36:20 | 
| 合計ジャッジ時間 | 5,706 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | WA * 4 | 
| other | WA * 6 | 
ソースコード
import java.util.*;
public class draw{
	public static void main(String... args){
		Scanner scan = new Scanner(System.in);
		int x = scan.nextInt(),y = scan.nextInt();
		int xx = x*x,yy = y*y;
		double r;
		r = Math.sqrt(xx+yy);
		if(r%10!=0){
			System.out.println(Math.ceil(r));
			return;
		}else{
			System.out.println(r);
			return;
		}
	}
}