結果
問題 |
No.9013 台形の面積
|
ユーザー |
![]() |
提出日時 | 2020-11-28 18:34:51 |
言語 | Java (openjdk 23) |
結果 |
RE
|
実行時間 | - |
コード長 | 318 bytes |
コンパイル時間 | 2,597 ms |
コンパイル使用メモリ | 83,680 KB |
実行使用メモリ | 54,184 KB |
最終ジャッジ日時 | 2024-09-18 23:06:09 |
合計ジャッジ時間 | 3,311 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 4 |
ソースコード
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); } }