摘要:
1.对于大部分OJ,没有必要全部读取完,存完,然后再计算。可以直接在读取的时候直接进行计算,这样可以简省运算空间。 2.使用 ios::sync_with_stdio(false);加速数据的读取,测试时该速度比scanf和printf要快。 3.注意: C++中,cin和cout要与stdio同步 阅读全文
摘要:
You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you cl 阅读全文
摘要:
Given a list of airline tickets represented by pairs of departure and arrival airports [from, to], reconstruct the itinerary in order. All of the tick 阅读全文