Toggle navigation
HUSTOJ
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Language
中文
ئۇيغۇرچە
English
فارسی
ไทย
한국어
Problem2592--数组+模拟算法练习 - Tanya and Stairways
2592: 数组+模拟算法练习 - Tanya and Stairways
[Creator :
]
Time Limit :
1.000
sec
Memory Limit :
128 MB
Submit
Solved: 8
Submit Num: 10
Statistics
Description
【题意】给定一个整数n和长度为n的数组a
请确定其中有多少个从1开始的由连续的自然数组成的子段,
输出这样的子段数量,并给出每一个子段的大小。
Input
Output
Sample Input
Copy
7 1 2 3 1 2 3 4
Sample Output
Copy
2 3 4
Source/Category
Codeforces
一维数组
模拟