codeforces1207d专题

codeforces1207D - Number Of Permutations

D. Number Of Permutations time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output You are given a sequence of ? pairs of integers: (?1,?1),(?2,?2),…,(