結果

問題 No.538 N.G.S.
ユーザー fjafjafjafjafjafja
提出日時 2017-08-13 22:41:25
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 348 bytes
コンパイル時間 4,630 ms
コンパイル使用メモリ 74,784 KB
実行使用メモリ 56,120 KB
最終ジャッジ日時 2024-04-21 10:31:34
合計ジャッジ時間 13,562 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
53,908 KB
testcase_01 AC 132 ms
54,020 KB
testcase_02 AC 134 ms
54,012 KB
testcase_03 AC 130 ms
54,036 KB
testcase_04 AC 131 ms
53,812 KB
testcase_05 AC 133 ms
53,928 KB
testcase_06 AC 131 ms
53,964 KB
testcase_07 WA -
testcase_08 AC 130 ms
53,880 KB
testcase_09 AC 133 ms
54,156 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 135 ms
53,876 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 134 ms
53,592 KB
testcase_18 AC 135 ms
53,716 KB
testcase_19 WA -
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 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 132 ms
41,716 KB
testcase_33 AC 132 ms
41,748 KB
testcase_34 AC 132 ms
41,644 KB
testcase_35 AC 131 ms
42,012 KB
testcase_36 AC 131 ms
41,224 KB
testcase_37 AC 132 ms
41,572 KB
testcase_38 AC 134 ms
41,644 KB
testcase_39 AC 133 ms
41,740 KB
testcase_40 WA -
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 AC 132 ms
41,484 KB
testcase_45 AC 133 ms
41,760 KB
testcase_46 WA -
testcase_47 AC 133 ms
41,160 KB
testcase_48 AC 133 ms
41,536 KB
testcase_49 WA -
testcase_50 AC 136 ms
41,664 KB
testcase_51 AC 140 ms
41,432 KB
testcase_52 WA -
testcase_53 WA -
testcase_54 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class N538
{
	public static void main(String[] args)
	{
		Scanner sc=new Scanner(System.in);
		int[] b=new int[3];
		for(int i=0;i<3;i++){b[i]=sc.nextInt();}
		//int b4=(int)Math.pow((b[2]-b[1]),2)/(b[1]-b[0])+b[2];
		int b4=((b[2]-b[1])*(b[2]-b[1])+b[1]*b[2]-b[0]*b[2])/(b[1]-b[0]);
		System.out.println(b4);
	}
}
0