用二维列表解决二维矩阵转置问题(python入门) 摘要:解题思路:1、利用列表推导创建法输入3x3矩阵;2、将3x3矩阵转置;3、遍历输出矩阵;注意事项:1、代码中使用了print函数来输出转置后的矩阵,需要确保输出格式符合预期,包括元素之间的分隔符和行与…… 题解列表 2024年03月14日 0 点赞 0 评论 357 浏览 评分:9.9
1175: 金明的预算方案 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,m; cin>>n>>m; int sum=1…… 题解列表 2024年03月14日 0 点赞 0 评论 277 浏览 评分:9.9
java--study||O.o 摘要:参考代码: import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date;…… 题解列表 2024年03月14日 0 点赞 0 评论 281 浏览 评分:0.0
LETTERS(经典DFS) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> using namespace std; int r, s,t1=0,t2;//r,s表示迷…… 题解列表 2024年03月14日 0 点赞 0 评论 447 浏览 评分:10.0
简单的递归 摘要:解题思路:注意事项:注意递归的出口 和递推公式的条件参考代码:#include<cstdio>#include<iostream>#include<cstring>#include<cmath>usi…… 题解列表 2024年03月14日 0 点赞 0 评论 376 浏览 评分:0.0
编写题解 2779: 输出绝对值,python超简单 摘要:解题思路:输入,注意是浮点数输出浮点数并保留两位小数注意事项:abs(N)计算浮点数N的绝对值。float(input())将用户输入的字符串转换为浮点数'%.2f' % abs(N)…… 题解列表 2024年03月14日 0 点赞 0 评论 891 浏览 评分:9.0
c++ 找规律分奇数偶数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int a[10000],n; ci…… 题解列表 2024年03月14日 0 点赞 0 评论 236 浏览 评分:0.0
易理解的计算与求和 摘要:解题思路:注意事项:累计高度加到n-1;为了便于计算全部2*之后-初始高度*1;注意幂次表达用cmath的pow表示参考代码:#include<cstdio>#include<iostream>#in…… 题解列表 2024年03月14日 0 点赞 0 评论 186 浏览 评分:0.0
高精度加法 摘要:解题思路:将输入的两个字符串通过split("")转化为String数组,通过for循环逆序存入int类型数组中,然后遍历将二者相加组成c数组注意事项:确保数组长度一致,否则遍历的时候可能会数组越界异…… 题解列表 2024年03月14日 0 点赞 0 评论 293 浏览 评分:0.0
小白看懂的C语言结构体 摘要:解题思路:注意事项:参考代码:#include <stdio.h>struct riqi{ int year; int manth; int day;};int rennian(int n){ int…… 题解列表 2024年03月14日 0 点赞 0 评论 188 浏览 评分:9.9