Submission #1370761
Source Code Expand
import java.io.UnsupportedEncodingException; 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<Long> num = new ArrayList<Long>(); ArrayList<String> param = new ArrayList<String>(); while (sc.hasNext()) { if(sc.hasNextInt()){ num.add(sc.nextLong()); } else { param.add(sc.nextLine()); } } Method(num,param); } static void Method(ArrayList<Long> num, ArrayList<String> param) throws UnsupportedEncodingException{ byte[] a = ("A"+param.get(0)).getBytes("US-ASCII"); System.out.println(a[1] - a[0] +1); } }
Submission Info
Submission Time | |
---|---|
Task | A - A |
User | unirita153 |
Language | Java8 (OpenJDK 1.8.0) |
Score | 100 |
Code Size | 698 Byte |
Status | AC |
Exec Time | 97 ms |
Memory | 21844 KB |
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 | 97 ms | 21716 KB |
B.txt | AC | 93 ms | 21844 KB |
C.txt | AC | 93 ms | 19796 KB |
D.txt | AC | 96 ms | 21332 KB |
E.txt | AC | 93 ms | 19668 KB |