report VI VI EN
Register | Login
  • HOME
  • PROBLEMSET
  • ROADMAP
  • COMPETITION
  • TOPIC
  • RANKING
  • GUIDE
  • MASHUP
  • ABOUT
  • CONTACT
  • Problem
  • Submit
  • Results
Letter Counting - MarisaOJ: Marisa Online Judge

Letter Counting

Time limit: 1000 ms
Memory limit: 256 MB
You are given 2 letters $a, b$. Count the number of letters in between $a$ and $b$ in the alphabet. ### Input - 2 letters $a, b$. ### Output - The number of letters in between $a$ and $b$ in the alphabet. ### Constraints - $a, b$ is a letter in the alphabet, in either lowercase or uppercase. ### Example Input: ``` a E ``` Output: ``` 3 ```
Input / Output and Condition
Hello Marisa!
A + B
A / B
Complex multiplication
Mushroom Classification
Integer equation
Age
Combine rectangles
String
Triangle
Rounded division
Circle
Calculator
The smallest and biggest
Rectangle
Segment
Distance
Ascending
Square number
Square numbers counting
Uppercase and lowercase
Letter Counting
Time format
Electricity bill
Eating mushroom
Topic
Basic
Rating 800
Solution (1) Solution