結果

問題 No.98 円を描こう
ユーザー 37zigen37zigen
提出日時 2016-03-12 20:24:57
言語 Java21
(openjdk 21)
結果
AC  
実行時間 144 ms / 5,000 ms
コード長 385 bytes
コンパイル時間 4,342 ms
コンパイル使用メモリ 76,148 KB
実行使用メモリ 57,856 KB
最終ジャッジ日時 2023-10-25 08:14:18
合計ジャッジ時間 6,479 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 144 ms
57,400 KB
testcase_01 AC 128 ms
56,332 KB
testcase_02 AC 140 ms
57,708 KB
testcase_03 AC 139 ms
57,856 KB
testcase_04 AC 130 ms
56,316 KB
testcase_05 AC 132 ms
56,312 KB
testcase_06 AC 131 ms
56,324 KB
testcase_07 AC 143 ms
57,776 KB
testcase_08 AC 138 ms
57,532 KB
testcase_09 AC 141 ms
57,784 KB
権限があれば一括ダウンロードができます

ソースコード

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