题解列表
1011题: 最大公约数与最小公倍数
摘要:# 自己写的代码
```c
#include
int main()
{
int a,b;
int temp=0;
scanf("%d %d",&a,&b);
……
删除数组零元素(c语言代码)
摘要:```c
#include
#include
int delete_zero(int* arr, int len);
int main()
{
int n = 0;
scanf("%……
pair来写容易很多
摘要:解题思路:pair第一个存学号第二个存成绩然后用bool来进行判断加上sort排序注意事项:参考代码:#include<iostream>#include<algorithm>using namesp……
2829: 数1的个数
摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) {Scanner sc = new Scann……
pair方法解决,方便易懂
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;typedef pair<int,double> bai……
vector存储写法,易懂
摘要:解题思路:注意事项:参考代码:#include#includeusing namespace std;vector{ if(A.size()<B.size())return add(B,A); ……
vector存储写法,易懂
摘要:解题思路:减法需要判断会不会为负数注意事项:参考代码:#include <iostream>#include <vector>using namespace std;bool cmp(vector<i……