摘要:
#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 = ... 阅读全文
摘要:
#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 < ... 阅读全文
摘要:
#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]){ ... 阅读全文