https://codeforces.com/problemset/problem/1265/Brating 赛 补提标题:rating 赛 补提
标题:rating 赛 补提B. Beautiful Numberstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a permutation p=[p1,p2,…,pn] of integers from 1 to n. Let’s call the number m (1≤m≤n) beautiful, if t