2020年9月18日

摘要: #include<iostream> #include<cstring> #include<cstdio> using namespace std; const int MAXN = 400 + 5; int n, l; int xx, yy; int map[MAXN][MAXN]; int dx 阅读全文
posted @ 2020-09-18 16:12 goalltheway 阅读(166) 评论(0) 推荐(0) 编辑
 

2020年9月1日

摘要: https://blog.csdn.net/liu17234050/category_9119322.html 阅读全文
posted @ 2020-09-01 15:32 goalltheway 阅读(119) 评论(2) 推荐(0) 编辑
 
摘要: https://blog.csdn.net/weixin_43914604/article/details/104415990 https://blog.csdn.net/qq_43672652/category_9838656.html 阅读全文
posted @ 2020-09-01 15:31 goalltheway 阅读(90) 评论(0) 推荐(0) 编辑
 

2020年8月20日

摘要: 代码如下 #include<iostream> using namespace std; //注意数组长度 int number[10001]; // 定义输入数组 int book[10001]; //定义标记数组(桶) int num[10001]; // 定义判断输出数组 int main() 阅读全文
posted @ 2020-08-20 23:17 goalltheway 阅读(1321) 评论(0) 推荐(0) 编辑
 

2020年8月6日

摘要: 题目描述 设有 n 个正整数 a1​...an,将它们联接成一排,相邻数字首尾相接,组成一个最大的整数。 输入格式 第一行有一个整数,表示数字个数 n。 第二行有 n 个整数,表示给出的 n 个整数 ai​。 输出格式 一个正整数,表示最大的整数 输入输出样例 输入 #1 3 13 312 343 阅读全文
posted @ 2020-08-06 16:26 goalltheway 阅读(407) 评论(0) 推荐(0) 编辑
 

2020年8月4日

摘要: 题目描述 幻方是一种很神奇的 N∗N矩阵:它由数字 1,2,3,⋯⋯ ,N×N 构成,且每行、每列及两条对角线上的数字之和都相同。 当 N 为奇数时,我们可以通过下方法构建一个幻方: 首先将 1写在第一行的中间。 之后,按如下方式从小到大依次填写每个数 K(K=2,3,⋯ ,N×N) 若 (K−1) 阅读全文
posted @ 2020-08-04 16:12 goalltheway 阅读(200) 评论(0) 推荐(0) 编辑
 
摘要: 题目描述 现有一个长宽高分别为 w,x,h(1≤w,x,h≤20)w,x,h(1\le w,x,h\le 20)w,x ,h(1≤w,x,h≤20) 组成的实心玻璃立方体,可以认为是由 1×1×11\times1\times11×1×1 的数个小方块组成的,每个小方块都有一个坐标 (i,j,k) ( 阅读全文
posted @ 2020-08-04 15:08 goalltheway 阅读(320) 评论(0) 推荐(0) 编辑
 

2020年7月23日

摘要: 题目描述 有一只小鱼,它平日每天游泳 250 公里,周末休息(实行双休日),假设从周 x(1≤x≤7)x(1\le x \le 7)x(1≤x≤7) 开始算起,过了 n(n≤106)n(n\le 10^6)n(n≤106) 天以后,小鱼一共累计游泳了多少公里呢? 输入格式 输入两个整数x,n(表示从 阅读全文
posted @ 2020-07-23 21:01 goalltheway 阅读(330) 评论(0) 推荐(0) 编辑
 

2020年7月21日

摘要: 【计算机网络】第一章:计算机网络概述https://blog.csdn.net/iwanderu/article/details/103795715【计算机网络】第二章:物理层https://blog.csdn.net/iwanderu/article/details/103802457【计算机网络 阅读全文
posted @ 2020-07-21 11:26 goalltheway 阅读(120) 评论(0) 推荐(0) 编辑
 

2020年7月20日

摘要: 在 n 阶方阵填入1 ,2 ,3 ,.... , n*n ,要求填成蛇形。例如, n = 4 时方阵为: 10 11 12 1 9 16 13 2 8 15 14 3 7 6 5 4 代码如下 #include<iostream>using namespace std;#define maxn 8i 阅读全文
posted @ 2020-07-20 16:06 goalltheway 阅读(123) 评论(0) 推荐(0) 编辑