题解列表

筛选

简短易懂的

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){     char a; while ((a = getchar()) != EOF) { if (a == ……

交换值(超简单)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a,b;    scanf("%d%d",&a,&b);    printf("%d %d",b,……

编写题解 2829: 数1的个数

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){     int n,x,i,count=0,t;     scanf("%d",&n);     fo……

A+B Problem(python)

摘要:解题思路:怎么同时输入多个数字 用map注意事项:参考代码: a,b=map(int,input().split())print(a+b)……

1094: 字符串的输入输出处理

摘要:解题思路:注意事项:参考代码:n=int(input())for i in range(n):    print(input(),end=&#39;\n\n&#39;)while True:    t……
优质题解

红与黑 BFS 和 DFS 的完整代码我都放到里面了 如果是数组下标越界的可以点进来看看,我里面有解释

摘要:如果是报错下标越界的话,那么就很有可能是输入的时候的问题,因为这个输入他最后不会是按照一个完整的行来输入的,而是随机的几位数,有可能不到来个图帮助理解一下解题思路:BFS先将初始坐标加入队列。然后,遍……