結果

問題 No.306 さいたま2008
ユーザー yun_app
提出日時 2016-05-16 15:07:53
言語 Java
(openjdk 23)
結果
AC  
実行時間 60 ms / 2,000 ms
コード長 729 bytes
コンパイル時間 2,057 ms
コンパイル使用メモリ 77,240 KB
実行使用メモリ 51,280 KB
最終ジャッジ日時 2025-02-14 12:13:08
合計ジャッジ時間 4,339 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
    public static void main (String[] args) throws java.lang.Exception
    {
        // your code goes here
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] line = br.readLine().split(" ");
        float a = Integer.parseInt(line[0]);
        float b = Integer.parseInt(line[1]);
        line = br.readLine().split(" ");
        float c = Integer.parseInt(line[0]);
        float d = Integer.parseInt(line[1]);
        
        
        System.out.println((b*c+a*d)/(a+c));
    }
}
0