Submission #1518585
Source Code Expand
import java.util.*; class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); Long result = 0l; 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 | 381 Byte |
Status | WA |
Exec Time | 660 ms |
Memory | 87908 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 | 93 ms | 19028 KB |
00_example_02.txt | AC | 95 ms | 18644 KB |
01.txt | WA | 92 ms | 19796 KB |
02.txt | WA | 106 ms | 19924 KB |
03.txt | WA | 98 ms | 19668 KB |
04.txt | WA | 95 ms | 21716 KB |
05.txt | WA | 251 ms | 39544 KB |
06.txt | AC | 660 ms | 86528 KB |
07.txt | AC | 619 ms | 87280 KB |
08.txt | WA | 595 ms | 87908 KB |
09.txt | WA | 596 ms | 87784 KB |
10.txt | WA | 598 ms | 85812 KB |