小易的字典 题目描述小易在学校中学习了关于字符串的理论, 于是他基于此完成了一个字典的项目。小易的这个字典很奇特, 字典内的每个单词都包含n个'a'和m个'z', 并且所有单词按照字典序排列。小易现在希望你能帮他找出第k个单词是什么。 输入描述:输入包括一行三个整数n, m, k(1 <= n, m ...
分类:
其他好文 时间:
2019-07-24 10:06:08
阅读次数:
207
俄罗斯方块 题目描述小易有一个古老的游戏机,上面有着经典的游戏俄罗斯方块。因为它比较古老,所以规则和一般的俄罗斯方块不同。荧幕上一共有 n 列,每次都会有一个 1 x 1 的方块随机落下,在同一列中,后落下的方块会叠在先前的方块之上,当一整行方块都被占满时,这一行会被消去,并得到1分。有一天,小易又 ...
分类:
其他好文 时间:
2019-07-23 10:10:55
阅读次数:
181
第一场【cx】2019.7.19 第一题 (2019 ICPC 徐州 H.Rikka with A Long Colour Palette) Q:n条线段(每条线段给出左右边界位置[ l, r ]),k种颜色。你要为每条线段染一种颜色,问至少能被k种颜色所覆盖的区间的最大总长度。∑n <= 2e6, ...
分类:
其他好文 时间:
2019-07-22 23:55:25
阅读次数:
248
毕业旅行问题 题目描述小明目前在做一份毕业旅行的规划。打算从北京出发,分别去若干个城市,然后再回到北京,每个城市之间均乘坐高铁,且每个城市只去一次。由于经费有限,希望能够通过合理的路线安排尽可能的省一些路上的花销。给定一组城市和每对城市之间的火车票的价钱,找到每个城市只访问一次并返回起点的最小车费花 ...
分类:
其他好文 时间:
2019-07-21 20:13:43
阅读次数:
949
万万没想到之聪明的编辑 题目描述我叫王大锤,是一家出版社的编辑。我发现一个发现拼写错误的捷径: 1. 三个同样的字母连在一起,一定是拼写错误,去掉一个的就好啦:比如 helllo -> hello2. 两对一样的字母(AABB型)连在一起,一定是拼写错误,去掉第二对的一个字母就好啦:比如 hello ...
分类:
其他好文 时间:
2019-07-20 15:48:06
阅读次数:
580
1 #include 2 using namespace std; 3 int main() 4 { 5 ios::sync_with_stdio(false); 6 cin.tie(0); 7 8 int n; 9 cin >> n; 10 int pre; 11 cin >> pre; 12 i... ...
分类:
其他好文 时间:
2019-07-10 18:58:53
阅读次数:
120
1 #include 2 using namespace std; 3 int month[2][13] {{0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}, 4 {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 3... ...
分类:
其他好文 时间:
2019-07-10 18:48:42
阅读次数:
105
1 #include <iostream> 2 using namespace std; 3 int arr[505][505]; 4 bool flag; 5 int n; 6 void printComp(int x1, int y1, int x2, int y2) 7 { 8 int i = ...
分类:
其他好文 时间:
2019-07-10 17:01:31
阅读次数:
252
1 #include 2 #include 3 #include 4 using namespace std; 5 6 bool vis[105][105]{false}; 7 int main() 8 { 9 ios::sync_with_stdio(false); 10 cin.tie(0); ... ...
分类:
其他好文 时间:
2019-07-10 15:17:36
阅读次数:
110
#include #include using namespace std; int arr[10005]; int toNum(char ch) {return ch - '0';} int main() { ios::sync_with_stdio(false); cin.tie(0); str... ...
分类:
其他好文 时间:
2019-07-10 01:30:54
阅读次数:
169