1030: [编程入门]二维数组的转置 摘要:```cpp #include using namespace std; /* 题目描述 写一个函数,使给定的一个二维数组(3×3)转置,即行列互换。 输入格式 一个3x3的矩阵 输…… 题解列表 2023年02月20日 0 点赞 1 评论 454 浏览 评分:9.9
分段函数 -- 简单明了 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double n; scanf("%lf",&n); if(0<=n && n<5) / /注…… 题解列表 2023年02月20日 0 点赞 0 评论 353 浏览 评分:0.0
骑车与走路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n);int bx = n / 1.2;int bike = n / 3.…… 题解列表 2023年02月20日 0 点赞 0 评论 317 浏览 评分:0.0
666666666666666666 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>#include<cstring>using namespace std;const int N=1e…… 题解列表 2023年02月20日 0 点赞 0 评论 296 浏览 评分:9.9
简单易懂!!! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int t,a[3]={0}; scanf("%d",&t); …… 题解列表 2023年02月19日 0 点赞 0 评论 331 浏览 评分:0.0
简单易懂!!! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<math.h>int main(){ char str[10]; …… 题解列表 2023年02月19日 0 点赞 0 评论 338 浏览 评分:0.0
简单易懂的绝对值排序! 摘要:解题思路:本题的难点在于输入数据有多组,每组占一行,每行的第一个数字为n,接着是n个整数,n=0表示输入数据的结束,不做处理。如果是只有一行很好办,加一个绝对值函数用选择或者冒泡排序,多行的话参考了题…… 题解列表 2023年02月19日 0 点赞 0 评论 372 浏览 评分:0.0
大臣的旅费-两次dfs+邻接矩阵或邻接表 摘要:# 树的直径问题,图中所有最短路径的最大值即为直径,两次dfs即可求出 ## 邻接矩阵 这题可以使用dfs+邻接矩阵来做,不过会导致内存超限只能80分。 ``` import java.u…… 题解列表 2023年02月19日 0 点赞 0 评论 550 浏览 评分:9.9
c语言简单版本 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char str[1000000]; gets(str); int a[26]={0},…… 题解列表 2023年02月19日 0 点赞 0 评论 504 浏览 评分:8.0
编程学习!!!!!!!!!!!!!! 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main{ public static void main(String[] args)…… 题解列表 2023年02月19日 0 点赞 1 评论 418 浏览 评分:2.0