結果

問題 No.98 円を描こう
ユーザー fal_rndfal_rnd
提出日時 2017-08-25 23:49:41
言語 Java21
(openjdk 21)
結果
AC  
実行時間 114 ms / 5,000 ms
コード長 482 bytes
コンパイル時間 1,940 ms
コンパイル使用メモリ 79,104 KB
実行使用メモリ 41,844 KB
最終ジャッジ日時 2024-04-23 15:49:45
合計ジャッジ時間 3,686 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 114 ms
41,452 KB
testcase_01 AC 98 ms
41,672 KB
testcase_02 AC 109 ms
41,684 KB
testcase_03 AC 104 ms
41,844 KB
testcase_04 AC 113 ms
41,468 KB
testcase_05 AC 114 ms
41,824 KB
testcase_06 AC 113 ms
41,620 KB
testcase_07 AC 110 ms
41,244 KB
testcase_08 AC 105 ms
41,440 KB
testcase_09 AC 111 ms
41,696 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
import java.util.stream.IntStream;

public class Main{
	static IntStream REPS(int v){return IntStream.range(0,v);}
	static IntStream REPS(int l,int r){return IntStream.rangeClosed(l,r);}
	static IntStream INS(int n) {return REPS(n).map(i->getInt());}
	static Scanner s=new Scanner(System.in);
	static int getInt(){return Integer.parseInt(s.next());}

	public static void main(String[]$){
		System.out.println((int)(Math.hypot(getInt(),getInt())*2+1));
	}
}
0