結果

問題 No.538 N.G.S.
ユーザー mosmos_21mosmos_21
提出日時 2017-06-30 23:59:48
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 375 bytes
コンパイル時間 2,678 ms
コンパイル使用メモリ 73,964 KB
実行使用メモリ 56,416 KB
最終ジャッジ日時 2024-04-15 07:16:04
合計ジャッジ時間 10,732 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
54,316 KB
testcase_01 AC 133 ms
54,496 KB
testcase_02 AC 132 ms
54,032 KB
testcase_03 AC 128 ms
54,148 KB
testcase_04 AC 133 ms
54,076 KB
testcase_05 AC 131 ms
53,868 KB
testcase_06 AC 133 ms
54,132 KB
testcase_07 AC 133 ms
54,080 KB
testcase_08 AC 131 ms
54,280 KB
testcase_09 AC 131 ms
54,076 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 132 ms
54,028 KB
testcase_13 AC 133 ms
54,272 KB
testcase_14 AC 132 ms
54,376 KB
testcase_15 AC 132 ms
54,080 KB
testcase_16 AC 133 ms
54,380 KB
testcase_17 AC 131 ms
54,204 KB
testcase_18 AC 135 ms
54,080 KB
testcase_19 AC 133 ms
54,052 KB
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 AC 129 ms
54,000 KB
testcase_29 AC 130 ms
54,140 KB
testcase_30 AC 131 ms
54,196 KB
testcase_31 AC 132 ms
54,244 KB
testcase_32 AC 132 ms
54,180 KB
testcase_33 AC 133 ms
54,296 KB
testcase_34 AC 132 ms
54,000 KB
testcase_35 AC 131 ms
54,244 KB
testcase_36 AC 132 ms
54,208 KB
testcase_37 AC 131 ms
54,196 KB
testcase_38 AC 133 ms
54,084 KB
testcase_39 AC 133 ms
54,252 KB
testcase_40 AC 130 ms
54,272 KB
testcase_41 AC 134 ms
54,200 KB
testcase_42 AC 132 ms
54,348 KB
testcase_43 AC 133 ms
54,344 KB
testcase_44 AC 134 ms
53,896 KB
testcase_45 AC 132 ms
54,008 KB
testcase_46 AC 132 ms
54,304 KB
testcase_47 AC 132 ms
54,056 KB
testcase_48 WA -
testcase_49 WA -
testcase_50 WA -
testcase_51 AC 132 ms
54,224 KB
testcase_52 AC 133 ms
54,408 KB
testcase_53 WA -
testcase_54 AC 132 ms
54,176 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package test;

import java.util.Scanner;

public class Main {
    public static void main(String[] args){
       Scanner in = new Scanner(System.in);
       int b1 = in.nextInt();
       int b2 = in.nextInt();
       int b3 = in.nextInt();

       double r = (b3 - b2) / ((b2 - b1) * 1.0);
       double d = b3 - r * b2;
       System.out.println((int)(r * b3 + d));
    }
}
0