Submit solution
Points:
0 (partial)
Time limit:
2.0s
Memory limit:
256M
Author:
Problem type
Allowed languages
C, C++
Everyone knows that there are letters in the English alphabet. But can you calculate the position of any letter?
Given an uppercase letter, your task is to determine its position in the English alphabet.
Note: You may only submit to this problem in C/C++.
Input Specification
The first line of input contains a single uppercase letter .
Output Specification
Output on a single line, the position of the letter in the alphabet. For example, A
B
Z
.
Scoring
Your score will be computed based on the length of your source code, the shorter the better. For an -byte program,
- if , you will receive the full points.
- if , you will receive points.
Sample Input
K
Sample Output
11
Comments