Submission #1574631
Source Code Expand
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); HashMap map = new HashMap<Character,Integer>(); map.put('A',1); map.put('B',2); map.put('C',3); map.put('D',4); map.put('E',5); String X = sc.next(); System.out.println(map.get(X.charAt(0))); } }
Submission Info
Submission Time | |
---|---|
Task | A - A |
User | suesue |
Language | Java8 (OpenJDK 1.8.0) |
Score | 100 |
Code Size | 528 Byte |
Status | AC |
Exec Time | 90 ms |
Memory | 21716 KB |
Compile Error
Note: ./Main.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details.
Judge Result
Set Name | all | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
all | A.txt, B.txt, C.txt, D.txt, E.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
A.txt | AC | 88 ms | 18644 KB |
B.txt | AC | 89 ms | 18772 KB |
C.txt | AC | 90 ms | 21204 KB |
D.txt | AC | 88 ms | 21716 KB |
E.txt | AC | 88 ms | 19796 KB |