Submission #1370266


Source Code Expand

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int h = sc.nextInt();

		System.out.println(((a + b) * h) / 2);

	}

}

Submission Info

Submission Time
Task A - Trapezoids
User unirita148
Language Java8 (OpenJDK 1.8.0)
Score 100
Code Size 324 Byte
Status AC
Exec Time 94 ms
Memory 21844 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 7
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
01.txt AC 93 ms 20688 KB
02.txt AC 93 ms 19412 KB
03.txt AC 93 ms 21716 KB
04.txt AC 92 ms 21716 KB
05.txt AC 94 ms 21588 KB
sample_01.txt AC 93 ms 21588 KB
sample_02.txt AC 91 ms 21844 KB