結果

問題 No.538 N.G.S.
ユーザー YamaKasaYamaKasa
提出日時 2018-09-24 17:14:36
言語 Java21
(openjdk 21)
結果
AC  
実行時間 301 ms / 2,000 ms
コード長 353 bytes
コンパイル時間 4,546 ms
コンパイル使用メモリ 74,228 KB
実行使用メモリ 57,680 KB
最終ジャッジ日時 2023-10-23 17:49:15
合計ジャッジ時間 15,557 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
57,412 KB
testcase_01 AC 135 ms
57,680 KB
testcase_02 AC 135 ms
57,512 KB
testcase_03 AC 137 ms
57,412 KB
testcase_04 AC 138 ms
57,596 KB
testcase_05 AC 138 ms
57,420 KB
testcase_06 AC 137 ms
57,520 KB
testcase_07 AC 137 ms
57,388 KB
testcase_08 AC 135 ms
57,272 KB
testcase_09 AC 136 ms
57,372 KB
testcase_10 AC 139 ms
57,184 KB
testcase_11 AC 138 ms
57,416 KB
testcase_12 AC 136 ms
57,272 KB
testcase_13 AC 138 ms
57,460 KB
testcase_14 AC 135 ms
57,412 KB
testcase_15 AC 140 ms
57,412 KB
testcase_16 AC 137 ms
57,608 KB
testcase_17 AC 142 ms
57,452 KB
testcase_18 AC 136 ms
57,452 KB
testcase_19 AC 134 ms
57,540 KB
testcase_20 AC 136 ms
57,492 KB
testcase_21 AC 136 ms
57,448 KB
testcase_22 AC 137 ms
57,536 KB
testcase_23 AC 136 ms
57,388 KB
testcase_24 AC 136 ms
57,384 KB
testcase_25 AC 135 ms
57,600 KB
testcase_26 AC 136 ms
57,384 KB
testcase_27 AC 136 ms
57,388 KB
testcase_28 AC 138 ms
57,472 KB
testcase_29 AC 144 ms
57,212 KB
testcase_30 AC 139 ms
57,464 KB
testcase_31 AC 137 ms
57,344 KB
testcase_32 AC 135 ms
57,432 KB
testcase_33 AC 135 ms
57,388 KB
testcase_34 AC 136 ms
57,472 KB
testcase_35 AC 136 ms
57,384 KB
testcase_36 AC 135 ms
57,216 KB
testcase_37 AC 138 ms
57,192 KB
testcase_38 AC 138 ms
57,500 KB
testcase_39 AC 140 ms
57,472 KB
testcase_40 AC 143 ms
57,040 KB
testcase_41 AC 141 ms
56,908 KB
testcase_42 AC 138 ms
56,960 KB
testcase_43 AC 137 ms
56,948 KB
testcase_44 AC 136 ms
56,908 KB
testcase_45 AC 160 ms
57,004 KB
testcase_46 AC 291 ms
57,024 KB
testcase_47 AC 301 ms
57,048 KB
testcase_48 AC 285 ms
57,008 KB
testcase_49 AC 294 ms
56,944 KB
testcase_50 AC 295 ms
57,004 KB
testcase_51 AC 199 ms
56,908 KB
testcase_52 AC 138 ms
57,124 KB
testcase_53 AC 139 ms
57,236 KB
testcase_54 AC 140 ms
57,156 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Exec0538 {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		long b1 = scan.nextInt();
		long b2 = scan.nextInt();
		long b3 = scan.nextInt();
		scan.close();
		long n = b2 * b2 + b3 * b3 - b1 * b3 - b2 * b3;
		long d = b2 - b1;
		long b4 = n / d;
		System.out.println(b4);
	}
}
0