結果

問題 No.538 N.G.S.
ユーザー mikan765mikan765
提出日時 2017-07-07 22:42:30
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 281 bytes
コンパイル時間 2,180 ms
コンパイル使用メモリ 74,144 KB
実行使用メモリ 41,816 KB
最終ジャッジ日時 2024-04-16 01:18:41
合計ジャッジ時間 10,855 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
41,020 KB
testcase_01 AC 132 ms
41,204 KB
testcase_02 AC 134 ms
41,068 KB
testcase_03 AC 132 ms
41,340 KB
testcase_04 AC 133 ms
41,332 KB
testcase_05 AC 135 ms
41,396 KB
testcase_06 AC 135 ms
41,200 KB
testcase_07 WA -
testcase_08 AC 137 ms
41,260 KB
testcase_09 AC 139 ms
41,496 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 119 ms
40,448 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 137 ms
41,364 KB
testcase_18 AC 138 ms
41,404 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 135 ms
41,504 KB
testcase_33 AC 135 ms
41,364 KB
testcase_34 AC 141 ms
41,396 KB
testcase_35 AC 139 ms
41,620 KB
testcase_36 AC 133 ms
41,484 KB
testcase_37 AC 135 ms
41,264 KB
testcase_38 AC 118 ms
40,256 KB
testcase_39 AC 132 ms
41,196 KB
testcase_40 WA -
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 AC 132 ms
41,316 KB
testcase_45 AC 129 ms
41,244 KB
testcase_46 WA -
testcase_47 AC 133 ms
41,512 KB
testcase_48 AC 140 ms
41,376 KB
testcase_49 WA -
testcase_50 AC 135 ms
41,564 KB
testcase_51 AC 133 ms
41,144 KB
testcase_52 WA -
testcase_53 WA -
testcase_54 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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