結果

問題 No.538 N.G.S.
ユーザー syuki791syuki791
提出日時 2017-07-08 22:19:35
言語 Java21
(openjdk 21)
結果
AC  
実行時間 136 ms / 2,000 ms
コード長 444 bytes
コンパイル時間 2,138 ms
コンパイル使用メモリ 74,088 KB
実行使用メモリ 57,744 KB
最終ジャッジ日時 2023-10-25 04:51:04
合計ジャッジ時間 10,683 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
57,508 KB
testcase_01 AC 130 ms
57,484 KB
testcase_02 AC 132 ms
57,512 KB
testcase_03 AC 132 ms
57,256 KB
testcase_04 AC 130 ms
57,276 KB
testcase_05 AC 130 ms
57,568 KB
testcase_06 AC 132 ms
57,524 KB
testcase_07 AC 129 ms
57,556 KB
testcase_08 AC 127 ms
57,484 KB
testcase_09 AC 130 ms
57,548 KB
testcase_10 AC 130 ms
55,248 KB
testcase_11 AC 130 ms
57,508 KB
testcase_12 AC 130 ms
57,512 KB
testcase_13 AC 129 ms
57,536 KB
testcase_14 AC 132 ms
57,652 KB
testcase_15 AC 131 ms
57,460 KB
testcase_16 AC 129 ms
57,508 KB
testcase_17 AC 130 ms
57,536 KB
testcase_18 AC 132 ms
57,744 KB
testcase_19 AC 129 ms
57,512 KB
testcase_20 AC 136 ms
57,536 KB
testcase_21 AC 129 ms
57,592 KB
testcase_22 AC 131 ms
57,516 KB
testcase_23 AC 129 ms
55,516 KB
testcase_24 AC 127 ms
57,532 KB
testcase_25 AC 128 ms
57,592 KB
testcase_26 AC 130 ms
57,436 KB
testcase_27 AC 133 ms
57,228 KB
testcase_28 AC 131 ms
57,528 KB
testcase_29 AC 131 ms
57,504 KB
testcase_30 AC 132 ms
55,552 KB
testcase_31 AC 133 ms
57,548 KB
testcase_32 AC 133 ms
57,476 KB
testcase_33 AC 131 ms
57,512 KB
testcase_34 AC 130 ms
57,352 KB
testcase_35 AC 131 ms
57,484 KB
testcase_36 AC 130 ms
57,532 KB
testcase_37 AC 132 ms
57,536 KB
testcase_38 AC 125 ms
57,464 KB
testcase_39 AC 127 ms
57,468 KB
testcase_40 AC 128 ms
57,424 KB
testcase_41 AC 128 ms
57,536 KB
testcase_42 AC 128 ms
57,556 KB
testcase_43 AC 129 ms
57,552 KB
testcase_44 AC 130 ms
57,536 KB
testcase_45 AC 128 ms
57,236 KB
testcase_46 AC 129 ms
57,388 KB
testcase_47 AC 131 ms
57,484 KB
testcase_48 AC 129 ms
57,512 KB
testcase_49 AC 129 ms
57,532 KB
testcase_50 AC 128 ms
57,512 KB
testcase_51 AC 129 ms
55,432 KB
testcase_52 AC 132 ms
57,508 KB
testcase_53 AC 129 ms
57,496 KB
testcase_54 AC 130 ms
57,500 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 b4 = Math.round((b3 - b2) / (b2 - b1) * b3 + (b2*b2-b1*b3)/(b2-b1));
		System.out.println((long)b4);
		
	}

}
0