摘要:
比较类排序 交换排序 冒泡排序 void bubble_sort(int arr[], int low, int high) { int len = high-low+1; for (int i = 0; i < len-1; ++i) { for (int j = 0; j < len-1-i; 阅读全文
摘要:
A - Minimal Square #include <bits/stdc++.h> using namespace std; const int maxn = 1e4+5; int main() { int t; cin >> t; while (t--) { int a, b; cin >> 阅读全文
摘要:
题目描述 Farmer John's N cows ($1 \leq N \leq 50,000$) are standing in a line, each described by an integer breed ID. Cows of the same breed are at risk f 阅读全文
摘要:
A. Archmage #include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int t; cin >> t; while (t--) { ll n, m, x, y; cin >> n >> 阅读全文