题解列表

筛选

3022: 流感传染一眼丁真

摘要:解题思路:        遍历数组s在哪有@,有就在另一个数组上标记为1;数组s遍历完后,遍历数组a,在有标记的位置对应数组s[ i ][ j ],后判断是s[ i ][ j ]四个方向是否能被感染;……

最普通的解题方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int i,b=0,c=0,d=0,e=0;    char a[201];    gets(a);   ……

最普通的解题方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    char a[150];    char b[51];    gets(a);    gets(b);  ……

3033: 放苹果

摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 全局变量声明,用于存储测试用例数量和两个整数m和n int t, n……

二级C语言-计负均正

摘要:#includeusing namespace std; int main() { int a[110]; for(int i=1;i>a[i]; double ans……

数组插入处理

摘要:#includeusing namespace std; int main() { int a[10]; for(int i=0;i>a[i]; int x,m;……