Submission #1518572
Source Code Expand
import java.util.*; class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int result = 0; int n = in.nextInt(); int[] a = new int[3]; for (int i = 0; i < n; i++) { for (int j = 0; j < a.length; j++) { a[j] = in.nextInt(); } Arrays.sort(a); result += a[1]; } System.out.println(result); } }
Submission Info
Submission Time | |
---|---|
Task | A - AtCoder Group Contest |
User | non |
Language | Java8 (OpenJDK 1.8.0) |
Score | 0 |
Code Size | 379 Byte |
Status | WA |
Exec Time | 642 ms |
Memory | 85324 KB |
Judge Result
Set Name | Sample | All | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 300 | ||||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 00_example_01.txt, 00_example_02.txt |
All | 00_example_01.txt, 00_example_02.txt, 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_example_01.txt | AC | 94 ms | 23124 KB |
00_example_02.txt | WA | 106 ms | 19668 KB |
01.txt | WA | 92 ms | 19284 KB |
02.txt | WA | 97 ms | 21716 KB |
03.txt | WA | 94 ms | 18644 KB |
04.txt | WA | 103 ms | 21844 KB |
05.txt | WA | 251 ms | 40468 KB |
06.txt | WA | 642 ms | 85324 KB |
07.txt | AC | 550 ms | 85208 KB |
08.txt | WA | 606 ms | 85152 KB |
09.txt | WA | 605 ms | 84856 KB |
10.txt | WA | 605 ms | 84944 KB |