摘要: 最简单的就是变成1~n的序列; 我们可以先加一个极大的数防止出现负数; 然后对于每一个%(a[ i ] - i); 阅读全文
posted @ 2019-01-20 09:56 NKDEWSM 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-01-20 00:07 NKDEWSM 阅读(547) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-01-20 00:06 NKDEWSM 阅读(455) 评论(0) 推荐(0) 编辑
摘要: 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. 阅读全文
posted @ 2019-01-20 00:04 NKDEWSM 阅读(239) 评论(0) 推荐(0) 编辑