Coder

舒心、快乐,比什么都重要

摘要: #include using namespace std; int arr[100100] = {0}; // 大的数组尽量开主函数外面 int main(){ int n, m, x, t; cin >> n; for (int i = 0; i > x; arr[x]++; } cin >> m; for (int i = ... 阅读全文
posted @ 2019-04-17 21:24 H123K 阅读(70) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int main(){ int n, m; char ch; cin >> n >> ch; if (n % 2 == 0) // 行数的奇偶变化 m = n / 2; else m = n / 2 + 1; for (int i = 0; i < ... 阅读全文
posted @ 2019-04-17 19:51 H123K 阅读(108) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std; int main(){ int n, m, max = 1, arr[100005]; cin >> n >> m; for (int i = 0; i > arr[i]; sort(arr, arr + n); for (int j = 0; j = arr[k]){ ... 阅读全文
posted @ 2019-04-17 01:18 H123K 阅读(180) 评论(0) 推荐(0) 编辑