摘要:
最简单的就是变成1~n的序列; 我们可以先加一个极大的数防止出现负数; 然后对于每一个%(a[ i ] - i); 阅读全文
摘要:
Three companies decided to order a billboard with pictures of their logos. A billboard is a big square board. A logo of each company is a rectangle of 阅读全文
摘要:
Petya loves computer games. Finally a game that he's been waiting for so long came out! The main character of this game has n different skills, each o 阅读全文
摘要:
The capital of Berland has n multifloor buildings. The architect who built up the capital was very creative, so all the houses were built in one row. 阅读全文