题解列表
2752: 整型数据类型存储空间大小
摘要:方法一:
```cpp
#include
using namespace std;
int main()
{
int a;
short b;
cout……
核心:通过逆向赋值实现数值后移
摘要:```c
#include
int main()
{
int n[10]={0},number; //number为我们要插入的数字
for(……
编写题解 2796: 求整数的和与均值
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; int i = 0; int m; long int sum = 0; double ave……
利用for循环求解编写题解 2794: 求平均年龄
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; int i = 0; int m; int sum = 0; double aver = 0.0;……
一种超简单标准的枚举方法
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ enum play{lose=-1,equality,win} result; int a,b; ……
时间复杂度的O(n)算法
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define maxn 100010#define maxk 100010//0 ……