結果

問題 No.538 N.G.S.
ユーザー syuki791syuki791
提出日時 2017-07-02 00:52:22
言語 Java21
(openjdk 21)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 464 bytes
コンパイル時間 2,396 ms
コンパイル使用メモリ 75,004 KB
実行使用メモリ 54,796 KB
最終ジャッジ日時 2024-04-15 16:26:10
合計ジャッジ時間 10,710 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
41,172 KB
testcase_01 AC 132 ms
41,136 KB
testcase_02 AC 130 ms
41,468 KB
testcase_03 AC 115 ms
40,100 KB
testcase_04 AC 134 ms
41,388 KB
testcase_05 AC 137 ms
41,472 KB
testcase_06 AC 131 ms
41,272 KB
testcase_07 AC 137 ms
41,460 KB
testcase_08 AC 128 ms
41,360 KB
testcase_09 AC 124 ms
41,636 KB
testcase_10 AC 130 ms
41,192 KB
testcase_11 AC 126 ms
41,656 KB
testcase_12 AC 134 ms
41,560 KB
testcase_13 AC 112 ms
40,100 KB
testcase_14 AC 130 ms
41,660 KB
testcase_15 AC 129 ms
41,528 KB
testcase_16 AC 130 ms
41,336 KB
testcase_17 AC 127 ms
41,088 KB
testcase_18 AC 127 ms
41,496 KB
testcase_19 AC 126 ms
41,352 KB
testcase_20 AC 136 ms
41,432 KB
testcase_21 AC 127 ms
41,600 KB
testcase_22 AC 114 ms
40,064 KB
testcase_23 AC 126 ms
41,204 KB
testcase_24 AC 127 ms
41,216 KB
testcase_25 AC 125 ms
41,456 KB
testcase_26 AC 128 ms
41,216 KB
testcase_27 AC 128 ms
41,388 KB
testcase_28 AC 130 ms
41,316 KB
testcase_29 AC 130 ms
41,756 KB
testcase_30 AC 126 ms
41,188 KB
testcase_31 AC 122 ms
41,228 KB
testcase_32 AC 123 ms
41,572 KB
testcase_33 AC 126 ms
41,180 KB
testcase_34 AC 125 ms
41,404 KB
testcase_35 AC 129 ms
41,376 KB
testcase_36 AC 111 ms
39,920 KB
testcase_37 AC 124 ms
41,380 KB
testcase_38 AC 112 ms
40,220 KB
testcase_39 AC 112 ms
40,064 KB
testcase_40 AC 122 ms
41,544 KB
testcase_41 AC 126 ms
41,448 KB
testcase_42 AC 126 ms
41,500 KB
testcase_43 AC 116 ms
40,804 KB
testcase_44 AC 112 ms
40,168 KB
testcase_45 AC 128 ms
40,996 KB
testcase_46 AC 111 ms
40,164 KB
testcase_47 WA -
testcase_48 WA -
testcase_49 WA -
testcase_50 AC 115 ms
40,144 KB
testcase_51 AC 124 ms
41,616 KB
testcase_52 AC 111 ms
40,040 KB
testcase_53 WA -
testcase_54 AC 126 ms
41,652 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	
	public static void main(String[] args){
		Scanner s = new Scanner(System.in);
		
		String[] str = s.nextLine().split(" ");
		s.close();
		
		double b1 = Double.parseDouble(str[0]);
		
		double b2 = Double.parseDouble(str[1]);
		
		double b3 = Double.parseDouble(str[2]);
		
		
		double r = (b3 - b2) / (b2 - b1);
		double d = (b2*b2-b1*b3)/(b2-b1);
		double b4 = r*b3 + d;
		System.out.println((long)b4);
		
	}

}
0