2833: 金币(简单易懂) 摘要:```c #include #include int main() { int n; int sum = 0; scanf("%d", &n); int num; int …… 题解列表 2023年12月16日 0 点赞 0 评论 529 浏览 评分:9.9
题解 2924: 明明的随机数(超详细) ```c#include#defineMAX1000intmain(){intN;intnums[MAX+1]={0};//初始化为0intcount=0;//不重复的数字的数量scanf("%d",&N);//读取随机数的数量for(inti=0;i 题解列表 2023年12月17日 0 点赞 0 评论 533 浏览 评分:9.9 sort和unique轻松解决 #includeusingnamespacestd;#definelllonglongconstintmaxn=1e6+50;inta[maxn];intmain(){intn,i;scanf("%d",&n);for(i=0;i 题解列表 2023年12月17日 0 点赞 0 评论 588 浏览 评分:9.9 题解 2938: 甲流病人初筛 ```c#include#includetypedefstructpeople{charname[10];doubletem;intif_cough;}patient;intmain(){intn,flag=0;patientarr[200], 题解列表 2023年12月17日 0 点赞 0 评论 606 浏览 评分:9.9 以自己理解写的,比较简单 摘要:解题思路:注意事项:尽量在b[y][x] = a[y][x]时把a[x][y]改掉参考代码:#include<stdio.h>int main(){ int x, y; int a[3…… 题解列表 2023年12月17日 0 点赞 0 评论 401 浏览 评分:9.9 2939: 最匹配的矩阵(超详解) ```c#include#include#include#include//计算矩阵A的子矩阵与矩阵B的差值绝对和intcalculate_diff(int**A,int**B,intr,ints,introw,intcol){intsum=0;for(inti=0;i 题解列表 2023年12月17日 0 点赞 0 评论 793 浏览 评分:9.9 水陆距离(朴素方法易懂版) 解题思路:这思路是优质题解的思路https://blog.dotcpp.com/a/8945思路如下①:若某陆地上下左右其中有一个是水域,则该陆地到水域的最短距离一定为1②:两个点的距离为x坐标相减的差得绝对值与y坐标相减差的绝对值之和③:把所有水域的坐标保存起来, 题解列表 2023年12月17日 0 点赞 0 评论 724 浏览 评分:9.9 2787: 有一门课不及格的学生 摘要:解题思路:注意事项:有一门课几个另一门课一定不及格参考代码:#include <iostream>using namespace std;int main(){ int x,y; cin …… 题解列表 2023年12月17日 0 点赞 0 评论 373 浏览 评分:9.9 2862: 字符串移位包含问题 摘要:``` #include using namespace std; const int N=10010; char a[N],b[N]; int main(){ cin>>a>>b; i…… 题解列表 2023年12月17日 0 点赞 0 评论 538 浏览 评分:9.9 跟我徐海东 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int f[100000];int a[100000];int count;int max=0,A;int c[100];int mai…… 题解列表 2023年12月17日 0 点赞 0 评论 871 浏览 评分:9.9 « 12...5583558455855586558755885589...59105911 »
sort和unique轻松解决 #includeusingnamespacestd;#definelllonglongconstintmaxn=1e6+50;inta[maxn];intmain(){intn,i;scanf("%d",&n);for(i=0;i 题解列表 2023年12月17日 0 点赞 0 评论 588 浏览 评分:9.9 题解 2938: 甲流病人初筛 ```c#include#includetypedefstructpeople{charname[10];doubletem;intif_cough;}patient;intmain(){intn,flag=0;patientarr[200], 题解列表 2023年12月17日 0 点赞 0 评论 606 浏览 评分:9.9 以自己理解写的,比较简单 摘要:解题思路:注意事项:尽量在b[y][x] = a[y][x]时把a[x][y]改掉参考代码:#include<stdio.h>int main(){ int x, y; int a[3…… 题解列表 2023年12月17日 0 点赞 0 评论 401 浏览 评分:9.9 2939: 最匹配的矩阵(超详解) ```c#include#include#include#include//计算矩阵A的子矩阵与矩阵B的差值绝对和intcalculate_diff(int**A,int**B,intr,ints,introw,intcol){intsum=0;for(inti=0;i 题解列表 2023年12月17日 0 点赞 0 评论 793 浏览 评分:9.9 水陆距离(朴素方法易懂版) 解题思路:这思路是优质题解的思路https://blog.dotcpp.com/a/8945思路如下①:若某陆地上下左右其中有一个是水域,则该陆地到水域的最短距离一定为1②:两个点的距离为x坐标相减的差得绝对值与y坐标相减差的绝对值之和③:把所有水域的坐标保存起来, 题解列表 2023年12月17日 0 点赞 0 评论 724 浏览 评分:9.9 2787: 有一门课不及格的学生 摘要:解题思路:注意事项:有一门课几个另一门课一定不及格参考代码:#include <iostream>using namespace std;int main(){ int x,y; cin …… 题解列表 2023年12月17日 0 点赞 0 评论 373 浏览 评分:9.9 2862: 字符串移位包含问题 摘要:``` #include using namespace std; const int N=10010; char a[N],b[N]; int main(){ cin>>a>>b; i…… 题解列表 2023年12月17日 0 点赞 0 评论 538 浏览 评分:9.9 跟我徐海东 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int f[100000];int a[100000];int count;int max=0,A;int c[100];int mai…… 题解列表 2023年12月17日 0 点赞 0 评论 871 浏览 评分:9.9 « 12...5583558455855586558755885589...59105911 »
题解 2938: 甲流病人初筛 ```c#include#includetypedefstructpeople{charname[10];doubletem;intif_cough;}patient;intmain(){intn,flag=0;patientarr[200], 题解列表 2023年12月17日 0 点赞 0 评论 606 浏览 评分:9.9
以自己理解写的,比较简单 摘要:解题思路:注意事项:尽量在b[y][x] = a[y][x]时把a[x][y]改掉参考代码:#include<stdio.h>int main(){ int x, y; int a[3…… 题解列表 2023年12月17日 0 点赞 0 评论 401 浏览 评分:9.9
2939: 最匹配的矩阵(超详解) ```c#include#include#include#include//计算矩阵A的子矩阵与矩阵B的差值绝对和intcalculate_diff(int**A,int**B,intr,ints,introw,intcol){intsum=0;for(inti=0;i 题解列表 2023年12月17日 0 点赞 0 评论 793 浏览 评分:9.9 水陆距离(朴素方法易懂版) 解题思路:这思路是优质题解的思路https://blog.dotcpp.com/a/8945思路如下①:若某陆地上下左右其中有一个是水域,则该陆地到水域的最短距离一定为1②:两个点的距离为x坐标相减的差得绝对值与y坐标相减差的绝对值之和③:把所有水域的坐标保存起来, 题解列表 2023年12月17日 0 点赞 0 评论 724 浏览 评分:9.9 2787: 有一门课不及格的学生 摘要:解题思路:注意事项:有一门课几个另一门课一定不及格参考代码:#include <iostream>using namespace std;int main(){ int x,y; cin …… 题解列表 2023年12月17日 0 点赞 0 评论 373 浏览 评分:9.9 2862: 字符串移位包含问题 摘要:``` #include using namespace std; const int N=10010; char a[N],b[N]; int main(){ cin>>a>>b; i…… 题解列表 2023年12月17日 0 点赞 0 评论 538 浏览 评分:9.9 跟我徐海东 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int f[100000];int a[100000];int count;int max=0,A;int c[100];int mai…… 题解列表 2023年12月17日 0 点赞 0 评论 871 浏览 评分:9.9 « 12...5583558455855586558755885589...59105911 »
水陆距离(朴素方法易懂版) 解题思路:这思路是优质题解的思路https://blog.dotcpp.com/a/8945思路如下①:若某陆地上下左右其中有一个是水域,则该陆地到水域的最短距离一定为1②:两个点的距离为x坐标相减的差得绝对值与y坐标相减差的绝对值之和③:把所有水域的坐标保存起来, 题解列表 2023年12月17日 0 点赞 0 评论 724 浏览 评分:9.9
2787: 有一门课不及格的学生 摘要:解题思路:注意事项:有一门课几个另一门课一定不及格参考代码:#include <iostream>using namespace std;int main(){ int x,y; cin …… 题解列表 2023年12月17日 0 点赞 0 评论 373 浏览 评分:9.9
2862: 字符串移位包含问题 摘要:``` #include using namespace std; const int N=10010; char a[N],b[N]; int main(){ cin>>a>>b; i…… 题解列表 2023年12月17日 0 点赞 0 评论 538 浏览 评分:9.9
跟我徐海东 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int f[100000];int a[100000];int count;int max=0,A;int c[100];int mai…… 题解列表 2023年12月17日 0 点赞 0 评论 871 浏览 评分:9.9