题解列表

筛选

归并排序(C++)

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; const int N = 1e5 + 10; int arr[N],tmp[N],……

平方差python解

摘要:解题思路:只有当x为奇数或4的倍数时才能拆分为两个数的平方差。注意事项:x-(x//2)求奇数的个数x//4求4的倍数的个数为了计算范围 [L, R] 内满足条件的数目,减去 f(L-1) 的目的是排……

用for放高度

摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){ int i=0; int apple=0; int hig[10]; int sh; for(;i<10;i+……