Submission #1372351
Source Code Expand
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); ArrayList<Integer> num = new ArrayList<Integer>(); ArrayList<String> param = new ArrayList<String>(); while (sc.hasNext()) { if (sc.hasNextInt()) { num.add(sc.nextInt()); } else { param.add(sc.nextLine()); } } Method(num, param); } static void Method(ArrayList<Integer> num, ArrayList<String> param) { System.out.println((num.get(0) + num.get(1)) * 2 / 2); } }
Submission Info
Submission Time | |
---|---|
Task | A - Trapezoids |
User | unirita153 |
Language | Java8 (OpenJDK 1.8.0) |
Score | 0 |
Code Size | 598 Byte |
Status | WA |
Exec Time | 93 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 | 92 ms | 18644 KB |
02.txt | AC | 93 ms | 19796 KB |
03.txt | WA | 92 ms | 19924 KB |
04.txt | WA | 92 ms | 21588 KB |
05.txt | WA | 90 ms | 19796 KB |
sample_01.txt | AC | 93 ms | 20552 KB |
sample_02.txt | WA | 93 ms | 17492 KB |