摘要:
凉了 门牌制作 答案:624 既约分数 #include<iostream> #include<cstring> using namespace std; int gcd(int a, int b){ return b ? gcd(b, a % b) : a; } int main(){ int r 阅读全文
摘要:
写吐了。。。 #include<iostream> using namespace std; #define LL long long LL S(LL n){ return (4 * n + 1) * (n + 1); } int main(){ LL x, y, res = 0; cin >> x 阅读全文
摘要:
另外本题还要注意一下他要输出路径,所以开一个数组记录一下后继结点 #include<iostream> #include<cstdio> using namespace std; const int N = 30, INF = 0x3f3f3f3f; int f[N]; int w[N]; int 阅读全文
摘要:
归并排序 #include<iostream> using namespace std; const int N = 100010; int q[N], temp[N]; int n; void merge_sort(int l, int r){ if(l == r) return; int mid 阅读全文