Submission #213400


Source Code Expand

Copy
import java.io.BufferedInputStream;
import java.io.IOException;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.*;

public class Main {
	//public static final int C = 1000000007;
	//static int map[][];
	//static int N;
	//static int M;
	static int tic[][];
	static int dp[][];

	

	public static void main(String[] args) {
		//StringBuilder sb = new StringBuilder();
		BufferedInputStream bs = new BufferedInputStream(System.in);
		Scanner sc = new Scanner(bs);

		int n = sc.next().charAt(0);
		

		//int m = sc.nextInt();
		
		//HashMap<Integer, ArrayList<Integer>> hm = new HashMap<Integer, ArrayList<Integer>>();
		
		
		//int map[][] = new int[n][n];
		int ans = n-'A'+1;
		
		
		System.out.println(ans);
		
	}

	
}

Submission Info

Submission Time
Task A - A
User kiki33
Language Java (OpenJDK 1.7.0)
Score 100
Code Size 787 Byte
Status AC
Exec Time 446 ms
Memory 22928 KB

Judge Result

Set Name all
Score / Max Score 100 / 100
Status
AC × 5
Set Name Test Cases
all A.txt, B.txt, C.txt, D.txt, E.txt
Case Name Status Exec Time Memory
A.txt AC 446 ms 22928 KB
B.txt AC 432 ms 22828 KB
C.txt AC 440 ms 22744 KB
D.txt AC 443 ms 22804 KB
E.txt AC 434 ms 22832 KB