Submission #1370279


Source Code Expand

import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws Exception {
//		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	//	String line = br.readLine();

		Scanner scan = new Scanner(System.in);
		int str1 = Integer.parseInt(scan.next());
		int str2 = Integer.parseInt(scan.next());
		int str3 = Integer.parseInt(scan.next());


		System.out.println((str1+str2)*str3/2);

	}
}

Submission Info

Submission Time
Task A - Trapezoids
User unirita147
Language Java8 (OpenJDK 1.8.0)
Score 100
Code Size 458 Byte
Status AC
Exec Time 99 ms
Memory 22996 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 89 ms 18644 KB
02.txt AC 90 ms 21588 KB
03.txt AC 89 ms 21588 KB
04.txt AC 90 ms 20948 KB
05.txt AC 89 ms 18644 KB
sample_01.txt AC 98 ms 19924 KB
sample_02.txt AC 99 ms 22996 KB