HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Arithmetic > problem:


50896 - Sum of Even Numbers

Section problems

• 50539 - Number of Chairs - 2
• 50532 - Close City
• 50379 - a^b modulus k
• 50404 - Sum of Self Powers
• 50403 - Number of Chairs
• 50377 - kth Permutation
• Cineplexx
• Cirku Belluci
• 50896 - Sum of Even Numbers
• 50903 - Basic Math Calculator
• El Clasico
• 50657 - Permutations and Combinat...
• 50659 - Covariance Matrix
• 50658 - The Message
• 51029 - Buy Three Items
• 50916 - Ascending Numbers
• 51032 - Triangle Property

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.

Sum of even numbers from a to b

 

You will be given two numbers a and b. Calculate and show the sum of even numbers from a until b.

Input specification
You will be given the two integers a and b where 1 ≤ a < b ≤ 5000

Output specification
Show the sum of even numbers from a to b.

 

Sample Input I   

Sample Input II  

4 10

2 28

Sample Output I   

Sample Output II

28

210

 

Для отправки решений необходимо выполнить вход.

www.contester.ru