a027: Sum of Odd Numbers 數字區間奇數和
標籤 : Mathematics 數學
通過比率 : 84% (54 人 / 64 人 ) (非即時)
評分方式 :
Tolerant

最近更新 : 2019-04-09 08:56

內容

Random odd numbers in a given range or set. A range a to b, please find between a, b and all the odd. For example, the range [1,6] of all odds is 1 + 3 + 5 = 9.

預設範圍或集合中的隨機奇數。 範圍a到b,請在a,b之間找到所有奇數之和。 例如,區間的範圍為[1,6]則此后區間的奇數和=是1 + 3 + 5 = 9。

輸入說明

Each set of test data for two, including two figures, namely a and b, and a and b are two numbers input range (0 ≦ a ≦ b ≦ 100).

輸入:請輸入兩組的數字,即a和b,以及a和b是兩個數字輸入範圍(0≤a≤b≤100)。

輸出說明

Each set of test data output one, the contents of a and b between (including) the sum of all odd.

輸出:請輸出每組測試數字之間,包含a和b之間所有奇數之和。

範例輸入
1 5 
2 4 
範例輸出
9 
3 
測資資訊 :
記憶體限制 : 64 MB
公開 測資點#0 (33%): 1.0s , <1K
公開 測資點#1 (33%): 1.0s , <1K
公開 測資點#2 (34%): 1.0s , <1K
提示 :
標籤:
Mathematics 數學
出處:
[編輯 :
shengZJ (shengZJ)
]


編號 身分 題目 主題 人氣 發表日期
沒有發現任何「解題報告」