闪闪鸡

文章
8
资源
0
加入时间
2年10月21天

【简单模拟】HDU-1117 Booklet Printing注解代码结果

注解1、本题是模拟书籍的装订,输出每一页用纸所对应的书籍页码。2、每一页纸可细分为正面和反面,正面又包含两页,反面也包含两页。3、需要注意的情况是Blank,也就是不包含的页码。代码#include <iostream>#include <cmath>using namespace std;int n;void process() { c...

【并查集】codeforces:New Reform

A. New ReformBerland has n cities connected by m bidirectional roads. No road connects a city to itself, and each pair of cities is connected by no more than one road. It is not guaranteed that you c...