結果

問題 No.98 円を描こう
ユーザー 37zigen
提出日時 2016-03-12 20:24:57
言語 Java
(openjdk 23)
結果
AC  
実行時間 147 ms / 5,000 ms
コード長 385 bytes
コンパイル時間 4,241 ms
コンパイル使用メモリ 76,264 KB
実行使用メモリ 54,372 KB
最終ジャッジ日時 2024-09-25 03:25:21
合計ジャッジ時間 6,485 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

package 練習;
import java.util.Date;
import java.util.Scanner;

public class main{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		long exec_time=new Date().getTime();
		int x=sc.nextInt(),y=sc.nextInt();
		double l=2*Math.sqrt((double)(x*x+y*y));
		System.out.println((int)l+1);
		
		
		System.err.println(new Date().getTime()-exec_time+"ms");
	}
}

0