题解列表

筛选

老管家的忠诚2(线段树)

摘要:解题思路: 代码分为线段树构建(build_tree)、区间查询(query)、单点更新(update)和主函数(main)四部分注意事项:参考代码:#include<bits/stdc++.h……

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……

1141:百钱百鸡

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int cock,hen,chicken; fo……

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……