版本比较
题解:CF1909H Parallel Swaps Sort
正文
增加 1 行删除 1 行
194 行未改动全部展开195196197198199200201202194 行未改动全部展开}for (int i = n; i >= 1; i--) work(i);std::cout << int(ans.size()) << '\n';for (auto [l, r] : ans)std::cout << l << ' ' << r << '\n';return 0;}194 行未改动全部展开195196197198199200201202194 行未改动全部展开}for (int i = n; i >= 1; i--) work(i);std::cout << int(ans.size()) << '\n';for (auto [l, r] : ans)std::cout << l << ' ' << r << '\n';return 0;}