魏老四OJ
Home
ProblemSet
Source/Category
Contest
题单
Status
Ranklist
F.A.Qs
Login
1003: 【入门】编程求1+3+5+...+n
Memory Limit:16 MB
Time Limit:1.000 S
:
Creator:
Submit:24
Solved:16
Submit
Statistics
Description
编程求1+3+5+...+n
Input
输入一行,只有一个整数n (1<=n<=9999) 这里n为奇数。
Output
输出只有一行
Sample Input
99
Sample Output
2500
Source/Category
简单循环
Submit
Statistics