Submission #1187028
Source Code Expand
import java.lang.*; import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws java.lang.Exception { InputStream inputStream = System.in; OutputStream outputStream = System.out; InputReader in = new InputReader(inputStream); PrintWriter out = new PrintWriter(outputStream); TaskA solver = new TaskA(); solver.solve(in, out); out.close(); } } class TaskA { public void solve(InputReader in, PrintWriter out) { int a = in.nextInt(), b = in.nextInt(), h = in.nextInt(); int ans = a * b * (h / 2); out.println(ans); } } class InputReader { public BufferedReader reader; public StringTokenizer tokenizer; public InputReader(InputStream stream) { reader = new BufferedReader(new InputStreamReader(stream), 32768); tokenizer = null; } public String next() { while (tokenizer==null || !tokenizer.hasMoreTokens()) { try { tokenizer = new StringTokenizer(reader.readLine()); } catch (IOException e) { throw new RuntimeException(e); } } return tokenizer.nextToken(); } public int nextInt() { return Integer.parseInt(next()); } }
Submission Info
Submission Time | |
---|---|
Task | A - Trapezoids |
User | Trasier |
Language | Java8 (OpenJDK 1.8.0) |
Score | 0 |
Code Size | 1182 Byte |
Status | WA |
Exec Time | 71 ms |
Memory | 21588 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 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 | WA | 69 ms | 19412 KB |
02.txt | WA | 69 ms | 21460 KB |
03.txt | WA | 71 ms | 19028 KB |
04.txt | WA | 69 ms | 19540 KB |
05.txt | WA | 71 ms | 21588 KB |
sample_01.txt | WA | 71 ms | 21328 KB |
sample_02.txt | WA | 70 ms | 21460 KB |