C. Nastya and Strange Generator Codeforces Round #637 (Div. 2) - Thanks, Ivan Belonogov!
链接:https://codeforces.com/contest/1341/problem/C
题意:问给定的序列能不能题中所给的算法生成。
比如,题目中举的例子:原序列a: [ 2 3 * * 1 ],先得出 r 数组 [ 3, 3 ,3 ,4 , * ] 。r 数组的意思是:原序列当前位置右边第一个空格的位置,比如原序列 a 索引为1的位置的右边第一个空位是 3。索引为2的位置的右边第个空...
原创
2020-04-24 12:32:40 ·
752 阅读 ·
0 评论