Submission #1370431
Source Code Expand
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); int b = scanner.nextInt(); int h = scanner.nextInt(); System.out.println((a+b)*h/2); } }
Submission Info
Submission Time | |
---|---|
Task | A - Trapezoids |
User | unirita152 |
Language | Java8 (OpenJDK 1.8.0) |
Score | 100 |
Code Size | 319 Byte |
Status | AC |
Exec Time | 106 ms |
Memory | 21844 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
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 | 106 ms | 18644 KB |
02.txt | AC | 93 ms | 21204 KB |
03.txt | AC | 93 ms | 20692 KB |
04.txt | AC | 91 ms | 21844 KB |
05.txt | AC | 91 ms | 18900 KB |
sample_01.txt | AC | 94 ms | 21204 KB |
sample_02.txt | AC | 97 ms | 19796 KB |