結果

問題 No.538 N.G.S.
ユーザー mikan765mikan765
提出日時 2017-07-07 22:45:07
言語 Java21
(openjdk 21)
結果
AC  
実行時間 137 ms / 2,000 ms
コード長 287 bytes
コンパイル時間 2,229 ms
コンパイル使用メモリ 73,928 KB
実行使用メモリ 57,712 KB
最終ジャッジ日時 2023-10-25 04:49:40
合計ジャッジ時間 11,176 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
57,396 KB
testcase_01 AC 130 ms
57,600 KB
testcase_02 AC 132 ms
57,496 KB
testcase_03 AC 128 ms
57,652 KB
testcase_04 AC 130 ms
57,636 KB
testcase_05 AC 129 ms
57,360 KB
testcase_06 AC 133 ms
57,600 KB
testcase_07 AC 133 ms
57,468 KB
testcase_08 AC 134 ms
57,448 KB
testcase_09 AC 133 ms
57,472 KB
testcase_10 AC 135 ms
57,440 KB
testcase_11 AC 134 ms
57,472 KB
testcase_12 AC 134 ms
57,516 KB
testcase_13 AC 133 ms
57,440 KB
testcase_14 AC 133 ms
57,480 KB
testcase_15 AC 133 ms
57,468 KB
testcase_16 AC 133 ms
57,492 KB
testcase_17 AC 134 ms
57,444 KB
testcase_18 AC 133 ms
57,440 KB
testcase_19 AC 133 ms
57,424 KB
testcase_20 AC 131 ms
55,748 KB
testcase_21 AC 137 ms
57,524 KB
testcase_22 AC 134 ms
57,456 KB
testcase_23 AC 134 ms
57,552 KB
testcase_24 AC 133 ms
57,436 KB
testcase_25 AC 133 ms
57,416 KB
testcase_26 AC 133 ms
57,460 KB
testcase_27 AC 133 ms
57,516 KB
testcase_28 AC 135 ms
57,376 KB
testcase_29 AC 136 ms
57,444 KB
testcase_30 AC 134 ms
57,556 KB
testcase_31 AC 136 ms
57,436 KB
testcase_32 AC 136 ms
57,460 KB
testcase_33 AC 136 ms
57,444 KB
testcase_34 AC 132 ms
57,320 KB
testcase_35 AC 135 ms
57,408 KB
testcase_36 AC 135 ms
57,700 KB
testcase_37 AC 132 ms
57,592 KB
testcase_38 AC 137 ms
57,660 KB
testcase_39 AC 134 ms
57,496 KB
testcase_40 AC 137 ms
57,500 KB
testcase_41 AC 133 ms
57,460 KB
testcase_42 AC 131 ms
57,464 KB
testcase_43 AC 136 ms
57,712 KB
testcase_44 AC 132 ms
57,500 KB
testcase_45 AC 133 ms
57,704 KB
testcase_46 AC 134 ms
57,472 KB
testcase_47 AC 131 ms
57,560 KB
testcase_48 AC 133 ms
57,408 KB
testcase_49 AC 130 ms
57,404 KB
testcase_50 AC 129 ms
57,468 KB
testcase_51 AC 131 ms
57,596 KB
testcase_52 AC 131 ms
57,472 KB
testcase_53 AC 130 ms
57,456 KB
testcase_54 AC 130 ms
57,392 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.util.Arrays;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		long a1 = sc.nextLong();
		long a2 = sc.nextLong();
		long a3 = sc.nextLong();
		System.out.println((a3*(a3-a1)+a2*(a2-a3))/(a2-a1));
	}
}
0