結果

問題 No.538 N.G.S.
ユーザー OlderInvestorOlderInvestor
提出日時 2017-10-08 01:00:31
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 443 bytes
コンパイル時間 3,443 ms
コンパイル使用メモリ 74,340 KB
実行使用メモリ 41,448 KB
最終ジャッジ日時 2024-11-17 04:43:17
合計ジャッジ時間 12,358 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 43 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;

import java.util.Scanner;

public class No538 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] b = {sc.nextInt(), sc.nextInt(), sc.nextInt()};
        double r, d, keisu;

        keisu = 1.0 / (b[1] - b[0]);
        r = keisu * b[2] + -keisu * b[1];
        d = keisu * -b[0] * b[2] + keisu * b[1] * b[1];

        System.out.println((long)(r * b[2] + d));
    }
}
0