Submission #344947
Source Code Expand
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedList; import java.util.Map; import java.util.PriorityQueue; import java.util.Set; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); final int a = sc.nextInt(); final int b = sc.nextInt(); final int c = sc.nextInt(); final int max = Math.max(a, Math.max(b, c)); final int min = Math.min(a, Math.min(b, c)); System.out.println((a + b + c) - max - min); } public static class Scanner { private BufferedReader br; private StringTokenizer tok; public Scanner(InputStream is) throws IOException { br = new BufferedReader(new InputStreamReader(is)); } private void getLine() throws IOException { while (!hasNext()) { tok = new StringTokenizer(br.readLine()); } } private boolean hasNext() { return tok != null && tok.hasMoreTokens(); } public String next() throws IOException { getLine(); return tok.nextToken(); } public int nextInt() throws IOException { return Integer.parseInt(next()); } public long nextLong() throws IOException { return Long.parseLong(next()); } public void close() throws IOException { br.close(); } } }
Submission Info
Submission Time | |
---|---|
Task | A - 高橋くんと年齢 |
User | mondatto |
Language | Java (OpenJDK 1.7.0) |
Score | 100 |
Code Size | 1848 Byte |
Status | AC |
Exec Time | 314 ms |
Memory | 21660 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | subtask0_sample_01.txt, subtask0_sample_02.txt, subtask0_sample_03.txt, subtask0_sample_04.txt |
All | 0.txt, 1.txt, 10.txt, 11.txt, 12.txt, 13.txt, 14.txt, 15.txt, 16.txt, 17.txt, 18.txt, 19.txt, 2.txt, 3.txt, 4.txt, 5.txt, 6.txt, 7.txt, 8.txt, 9.txt, subtask0_sample_01.txt, subtask0_sample_02.txt, subtask0_sample_03.txt, subtask0_sample_04.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
0.txt | AC | 303 ms | 21576 KB |
1.txt | AC | 306 ms | 21532 KB |
10.txt | AC | 299 ms | 21624 KB |
11.txt | AC | 296 ms | 21532 KB |
12.txt | AC | 302 ms | 21572 KB |
13.txt | AC | 307 ms | 21588 KB |
14.txt | AC | 314 ms | 21580 KB |
15.txt | AC | 314 ms | 21596 KB |
16.txt | AC | 312 ms | 21608 KB |
17.txt | AC | 297 ms | 21576 KB |
18.txt | AC | 297 ms | 21536 KB |
19.txt | AC | 291 ms | 21660 KB |
2.txt | AC | 289 ms | 21588 KB |
3.txt | AC | 288 ms | 21636 KB |
4.txt | AC | 288 ms | 21524 KB |
5.txt | AC | 290 ms | 21620 KB |
6.txt | AC | 296 ms | 21600 KB |
7.txt | AC | 297 ms | 21528 KB |
8.txt | AC | 298 ms | 21604 KB |
9.txt | AC | 298 ms | 21644 KB |
subtask0_sample_01.txt | AC | 297 ms | 21532 KB |
subtask0_sample_02.txt | AC | 295 ms | 21576 KB |
subtask0_sample_03.txt | AC | 298 ms | 21556 KB |
subtask0_sample_04.txt | AC | 302 ms | 21532 KB |