题解列表

筛选

编写题解 2779: 输出绝对值,python超简单

摘要:解题思路:输入,注意是浮点数输出浮点数并保留两位小数注意事项:abs(N)计算浮点数N的绝对值。float(input())将用户输入的字符串转换为浮点数'%.2f' % abs(N)……

简单的递归

摘要:解题思路:注意事项:注意递归的出口 和递推公式的条件参考代码:#include<cstdio>#include<iostream>#include<cstring>#include<cmath>usi……

LETTERS(经典DFS)

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> using namespace std; int r, s,t1=0,t2;//r,s表示迷……

java--study||O.o

摘要:参考代码: import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date;……

1175: 金明的预算方案

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int n,m; cin>>n>>m;    int sum=1……

用二维列表解决二维矩阵转置问题(python入门)

摘要:解题思路:1、利用列表推导创建法输入3x3矩阵;2、将3x3矩阵转置;3、遍历输出矩阵;注意事项:1、代码中使用了print函数来输出转置后的矩阵,需要确保输出格式符合预期,包括元素之间的分隔符和行与……

1179: 上车人数(有点意思)

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int a[100],b[100],c[100];//数组a上车……

蓝桥杯算法训练VIP-暗恋

摘要:解题思路:维护一个二维数组的前缀和数组,随后对其检测每一个正方形,若全为1则该正方形的和为其面积。若全为0,则正方形的和为0参考代码:#include<bits/stdc++.h> using na……

1182: 人民币问题(背下来)

摘要:解题思路:注意事项:参考代码:include<iostream>using namespace std;int main(){    int a,b,c,count=0;    int sum;   ……