题解列表
使用动态分配来解决问题
摘要:解题思路:注意事项:申请后释放参考代码:#include <stdio.h>#include<malloc.h>int main(){ int n,i,sum=0; int *p; ……
阶乘求和[考虑变量类型数值溢出]
摘要:解题思路: 注意变量类型范围,可能会溢出;选long long数据类型;注意事项:阶乘求和类型名称 字节数 取值范围
signed char  
优质题解
拦截导弹,贪心+二分的nlogn做法
摘要:解题思路:lower_bound( )和upper_bound( )都是利用二分查找的方法在一个排好序的数组中进行查找的。1、在从小到大的排序数组中,lower_bound( begin,end,nu……