题解列表

筛选

2854: 密码翻译

摘要: import java.util.Scanner; public class Main {     public static void main(String[] args) {   ……

过河卒 python

n,m,cx,cy=list(map(int,input().split()))dp=[[0forxinrange(m+1)]foryinrange(n+1)]b=[[0forxinrange(m+1)]foryinrange(n+1)]p=[(-1,

我这个巨简单

摘要:# 读取输入 L, M = map(int, input().split()) road = [0] * (L + 1)  # 创建一个长度为 L+1 的数组,用于表示马路上的树 # 处理区……

题解 2853: 字符替换

摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main {     public static void main(String[……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#define maxsize 1001typedef struct treenode{ int d……

C语言---堆排序

摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <stdlib.h> #include <assert.h> typedef int HPDatatyp……

刻录光盘(c++)

##解题思路求强联通分量,统计入度为0的即可##参考代码```cpp#includeusingnamespacestd;constintN=1e4+5;structedge{intto,ne;}e[N*10];inth[N],idx;voidadd(intu,

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#include <string.h>typedef struct treenode{    c……

肿瘤面积(C语言,循环嵌套)

摘要:解题思路:由题意可知,创建一个n行n列的矩阵,找出值为0的元素,肿瘤是一个矩形,故而找出第一个值为0的元素,再在行和列上延伸寻找值为0的元素注意事项:参考代码:#include<stdio.h> v……