Educational Codeforces Round 10C Foe Pairs
You are given a permutation p of length n. Also you are given m foe pairs (ai, bi) (1 ≤ ai, bi ≤ n, ai ≠ bi).Your task is to count the number of different intervals (x, y) (1 ≤ x ≤ y ≤ n) that do not c
原创
2017-11-15 21:46:36 ·
317 阅读 ·
0 评论