鲁班创客OJ
Home
ProblemSet
Source/Category
Contest
Status
Ranklist
F.A.Qs
Login
1030: 求数列的第n项
Memory Limit:3 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:65
Solved:47
Submit
Submit Record
Statistics
ShowOff!
Description
请问如下数列1,2,2,3,3,3,4,4,4,4……请问这个数列的第n项是多少?
Input
从键盘读入一个整数n,代表要求的项数
Output
一个整数n代表该项的值是多少
Sample Input
Copy
10
Sample Output
Copy
4
Source/Category
鲁班创客
入门
四则运算
循环结构
Submit
Submit Record
Statistics
ShowOff!