結果

問題 No.9013 台形の面積
ユーザー EruAirEruAir
提出日時 2020-11-28 18:34:51
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 318 bytes
コンパイル時間 2,153 ms
コンパイル使用メモリ 74,008 KB
実行使用メモリ 57,568 KB
最終ジャッジ日時 2023-10-19 03:00:07
合計ジャッジ時間 3,749 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Main{
    public static void main(String... args){
        Scanner sc = new Scanner(System.in);
        int u,b,h;
        u = sc.nextInt();
        b = sc.nextInt();
        h = sc.nextInt();
        System.out.printf("%.2f",(double)(u+b)*h/(double)2);
        
        
    }
}
0