結果

問題 No.538 N.G.S.
ユーザー fjafjafjafjafjafja
提出日時 2017-08-13 23:13:11
言語 Java21
(openjdk 21)
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 279 bytes
コンパイル時間 4,410 ms
コンパイル使用メモリ 74,468 KB
実行使用メモリ 57,648 KB
最終ジャッジ日時 2023-10-25 04:57:22
合計ジャッジ時間 13,528 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
57,280 KB
testcase_01 AC 130 ms
57,436 KB
testcase_02 AC 130 ms
57,460 KB
testcase_03 AC 127 ms
57,096 KB
testcase_04 AC 130 ms
57,456 KB
testcase_05 AC 133 ms
57,468 KB
testcase_06 AC 133 ms
57,636 KB
testcase_07 AC 132 ms
57,356 KB
testcase_08 AC 132 ms
57,528 KB
testcase_09 AC 130 ms
57,416 KB
testcase_10 AC 130 ms
57,404 KB
testcase_11 AC 130 ms
57,456 KB
testcase_12 AC 132 ms
57,536 KB
testcase_13 AC 134 ms
57,368 KB
testcase_14 AC 132 ms
57,428 KB
testcase_15 AC 133 ms
57,404 KB
testcase_16 AC 131 ms
57,436 KB
testcase_17 AC 131 ms
57,316 KB
testcase_18 AC 131 ms
57,420 KB
testcase_19 AC 132 ms
57,440 KB
testcase_20 AC 133 ms
57,648 KB
testcase_21 AC 134 ms
57,496 KB
testcase_22 AC 133 ms
57,556 KB
testcase_23 AC 129 ms
57,472 KB
testcase_24 AC 130 ms
57,428 KB
testcase_25 AC 132 ms
57,408 KB
testcase_26 AC 127 ms
57,376 KB
testcase_27 AC 131 ms
57,504 KB
testcase_28 AC 131 ms
57,348 KB
testcase_29 AC 128 ms
57,176 KB
testcase_30 AC 129 ms
57,396 KB
testcase_31 AC 131 ms
57,564 KB
testcase_32 AC 131 ms
57,408 KB
testcase_33 AC 129 ms
57,044 KB
testcase_34 AC 128 ms
57,396 KB
testcase_35 AC 129 ms
57,576 KB
testcase_36 AC 130 ms
57,292 KB
testcase_37 AC 130 ms
57,564 KB
testcase_38 AC 133 ms
57,444 KB
testcase_39 AC 132 ms
57,328 KB
testcase_40 AC 129 ms
57,524 KB
testcase_41 AC 131 ms
57,416 KB
testcase_42 AC 134 ms
57,372 KB
testcase_43 AC 131 ms
57,132 KB
testcase_44 AC 132 ms
57,580 KB
testcase_45 AC 130 ms
57,452 KB
testcase_46 AC 131 ms
55,456 KB
testcase_47 AC 127 ms
57,100 KB
testcase_48 AC 131 ms
57,420 KB
testcase_49 AC 131 ms
57,644 KB
testcase_50 AC 129 ms
57,416 KB
testcase_51 AC 128 ms
57,388 KB
testcase_52 AC 131 ms
57,428 KB
testcase_53 AC 133 ms
57,544 KB
testcase_54 AC 131 ms
57,396 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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