結果

問題 No.538 N.G.S.
ユーザー Mcpu3
提出日時 2018-09-21 22:31:58
言語 Java
(openjdk 23)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 288 bytes
コンパイル時間 2,041 ms
コンパイル使用メモリ 74,128 KB
実行使用メモリ 41,740 KB
最終ジャッジ日時 2024-07-18 08:48:43
合計ジャッジ時間 9,435 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 51
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Main{
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        long b1=sc.nextLong(),b2=sc.nextLong(),b3=sc.nextLong();
        sc.close();
        System.out.print((b2*b3-b3*b3+b1*b3-b2*b2)/(b1-b2));
    }
}
0