题解列表

筛选

realloc动态分配内存

摘要:解题思路:注意事项:参考代码:#include<stdio.h>/*72 101 108 108 111 44                   32 119 111 114 108 100 

[编程入门]完数的判断

摘要:参考代码:#include<bits/stdc++.h> using namespace std; int main(void){ int n; int len=0; int arr[……

晶晶赴会选择语句

摘要:解题思路:利用switch语句注意事项:一定要用break语句结束参考代码:#include<stdio.h>int main(){    int a;    scanf("%d",&a);    s……

python 简单易懂的求平均年龄-题解

摘要:解题思路:  用for循环来输入注意事项: 输入的是个整数(int)参考代码: n = int(input());s=k=0for i in range(n):    x = int(input())……

1188: 做幻方

摘要:```cpp #include #include #include #define MOVE magic[y-1][x+1] using namespace std; int main()……

1189: 内码对称

摘要:```cpp #include using namespace std; typedef long long LL; int main() { LL num; int a……

1190: 剔除相关数

摘要:```cpp #include #include #include #include using namespace std; mapma; setse; struct str { ……

Hash映射求亲密数

摘要:# 哈希映射 ~~~ c++ int main() { int i ; int j ; int count = 0; int cmp ; int Hash[3001]{ 0 ……

一种超简单的方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N,sum=0,b,t,i,m; int a[N]; scanf("%d",&N); for( i=0;……