题解列表

筛选

2808: 买房子

摘要:#include <bits/stdc++.h>using namespace std;int main(){ double y=200; ……

2829:数1的个数

摘要:解题思路:注意事项:参考代码:int main(){ int num,count=0,i,n; scanf("%d",&……

1570:九九乘法表

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf(" Nine-by-nine Multiplication Ta……

2819:数字反转

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int num,remained,reserved=0; scanf("%d",……

1071:阶乘公式求值

摘要:解题思路:注意事项:参考代码:#include<stdio.h>double fact(int k){ int i; double re……

1014:阶乘求和

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; long result=1,sn=0; scanf("%d",……

1305: 老管家的忠诚(ST表)

摘要:解题思路:ST 表原理:利用动态规划预处理出所有长度为2^j的区间最小值,查询时通过两个覆盖目标区间的预处理区间的最小值得到结果,实现O(1)查询。预处理:时间复杂度O(n log n),通过递推关系……