結果

問題 No.538 N.G.S.
ユーザー syuki791syuki791
提出日時 2017-07-02 00:48:16
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 480 bytes
コンパイル時間 2,194 ms
コンパイル使用メモリ 74,244 KB
実行使用メモリ 56,160 KB
最終ジャッジ日時 2024-04-15 09:50:30
合計ジャッジ時間 11,328 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 146 ms
53,992 KB
testcase_01 AC 145 ms
53,856 KB
testcase_02 AC 136 ms
54,100 KB
testcase_03 AC 133 ms
53,884 KB
testcase_04 AC 138 ms
54,112 KB
testcase_05 AC 137 ms
54,292 KB
testcase_06 AC 136 ms
54,044 KB
testcase_07 WA -
testcase_08 AC 139 ms
54,272 KB
testcase_09 AC 135 ms
54,512 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 137 ms
54,356 KB
testcase_13 AC 137 ms
54,008 KB
testcase_14 WA -
testcase_15 AC 135 ms
54,160 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 137 ms
54,428 KB
testcase_19 AC 135 ms
53,852 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 132 ms
54,124 KB
testcase_29 AC 136 ms
54,112 KB
testcase_30 AC 139 ms
54,108 KB
testcase_31 AC 136 ms
54,348 KB
testcase_32 AC 132 ms
54,372 KB
testcase_33 AC 134 ms
54,116 KB
testcase_34 AC 133 ms
54,036 KB
testcase_35 AC 131 ms
54,184 KB
testcase_36 AC 133 ms
53,940 KB
testcase_37 AC 132 ms
54,536 KB
testcase_38 AC 134 ms
54,272 KB
testcase_39 AC 133 ms
54,160 KB
testcase_40 WA -
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 AC 135 ms
54,256 KB
testcase_45 AC 133 ms
54,016 KB
testcase_46 WA -
testcase_47 WA -
testcase_48 WA -
testcase_49 WA -
testcase_50 AC 136 ms
54,088 KB
testcase_51 AC 136 ms
54,224 KB
testcase_52 WA -
testcase_53 WA -
testcase_54 WA -
権限があれば一括ダウンロードができます

ソースコード

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();
		
		int b1 = Integer.parseInt(str[0]);
		
		int b2 = Integer.parseInt(str[1]);
		
		int b3 = Integer.parseInt(str[2]);
		
		
		double r = (double)(b3 - b2) / (double)(b2 - b1);
		double d = (double)(b2*b2-b1*b3)/(double)(b2-b1);
		double b4 = r*b3 + d;
		System.out.println((int)b4);
		
	}

}
0