自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

快乐的小小程序猿

快乐的小小程序猿

  • 博客(45)
  • 资源 (10)
  • 收藏
  • 关注

原创 Chrome浏览器断网时的小恐龙dino怎么一直玩?

Chrome浏览器断网时的小恐龙dino怎么一直玩?Chrome浏览器访问chrome://dino/按F12,在控制台输入下面的两行代码,回车。Runner.instance_.gameOver=function(){} // 用空函数覆盖gameOver,小恐龙不死Runner.instance_.setSpeed(1000) // 来加个速鼠标点一下小恐龙,敲一下空格键,小恐龙跑起来原理详细分析:https://mp.weixin.qq.com/s/laCs7EpKXl

2020-07-11 18:59:33 24849

原创 PAT基础编程题目-7-22 龟兔赛跑

PAT基础编程题目-7-22 龟兔赛跑题目详情题目地址:https://pintia.cn/problem-sets/14/problems/802解答C语言版#include<stdio.h>int main() { int T, tortoise = 0, rabbit = 0, time = 0, flag = 1; scanf("%d", &T); while (flag && time < T) { if (time % 10

2020-07-07 09:39:09 529

原创 PAT基础编程题目-7-21 求特殊方程的正整数解

PAT基础编程题目-7-21 求特殊方程的正整数解题目详情题目地址:https://pintia.cn/problem-sets/14/problems/801解答C语言版#include<stdio.h>int main() { int N, flag=1; scanf("%d", &N); for (int x = 1; x <= 100; x++) { // 正整数解,x,y都要大于0 for (int y = 1; y <= 100; y

2020-07-07 09:32:54 757

原创 PAT基础编程题目-7-20 打印九九口诀表

PAT基础编程题目-7-20 打印九九口诀表题目详情题目详情:https://pintia.cn/problem-sets/14/problems/800解答C语言版#include<stdio.h>int main() { int N; scanf("%d", &N); for (int i = 1; i <= N; i++) { for (int j = 1; j <= i; j++) { printf("%d*%d=%-4d", j,

2020-07-07 09:27:55 355

原创 PAT基础编程题目-7-19 支票面额

PAT基础编程题目-7-19 支票面额题目详情题目详情:https://pintia.cn/problem-sets/14/problems/799解答C语言版#include<stdio.h>int main() { int y, f, n; scanf("%d", &n); for (y = 0; y < 50; y++) { for (f = 0; f < 100; f++) { // 仔细读懂题目,可以推出下面的公式 if

2020-07-07 09:22:29 390 2

原创 PAT基础编程题目-7-18 二分法求多项式单根

PAT基础编程题目-7-18 二分法求多项式单根题目详情题目地址:https://pintia.cn/problem-sets/14/problems/798解答C语言版#include<stdio.h>int main() { float a0, a1, a2, a3, a, b; double f, fa, fb; scanf("%f %f %f %f", &a3, &a2, &a1, &a0); scanf("%f %f", &a

2020-07-07 09:13:01 330

原创 PAT基础编程题目-7-17 爬动的蠕虫

PAT基础编程题目-7-17 爬动的蠕虫题目详情题目地址:https://pintia.cn/problem-sets/14/problems/797解答C语言版#include<stdio.h>int main() { int n, u, d, time = 0, position = 0; scanf("%d %d %d", &n, &u, &d); while (1) { if (n - position > u) // 剩下的

2020-07-06 10:32:36 562

原创 PAT基础编程题目-7-16 求符合给定条件的整数集

PAT基础编程题目-7-16 求符合给定条件的整数集题目详情题目地址:https://pintia.cn/problem-sets/14/problems/796解答C语言版#include<stdio.h>int main(){ int a; scanf("%d", &a); int number[4] = {a, a+1, a+2, a+3}; int row = 0, col = 0; //统计行数和列数,控制行后面的换行和列后面的空格 for (i

2020-07-06 10:26:09 717

原创 PAT基础编程题目-7-15 计算圆周率

PAT基础编程题目-7-15 计算圆周率题目详情题目地址:https://pintia.cn/problem-sets/14/problems/795解答C语言版#include<stdio.h>int main() { float threshold, pi = 1, end =1; double numerator = 1, denominator = 1; //分子,分母 长整型会溢出 scanf("%f", &threshold); for (int

2020-07-06 10:19:52 842 3

原创 PAT基础编程题目-7-14 求整数段和

PAT基础编程题目-7-14 求整数段和题目详情题目地址:https://pintia.cn/problem-sets/14/problems/794解答C语言版#include<stdio.h>int main() { int a, b, sum = 0, count=1; scanf_s("%d %d", &a, &b); for (int i = a; i <= b; i++, count++) { printf("%5d", i);

2020-07-06 10:11:38 431

原创 PAT基础编程题目-7-13 日K蜡烛图

PAT基础编程题目-7-13 日K蜡烛图题目详情题目地址:https://pintia.cn/problem-sets/14/problems/793解答C语言版#include<stdio.h>int main() { float open, high, low, close; scanf("%f %f %f %f", &open, &high, &low, &close); if (close < open) printf("

2020-07-06 10:05:44 497

原创 PAT基础编程题目-7-12 两个数的简单计算器

PAT基础编程题目-7-12 两个数的简单计算器题目详情题目地址:https://pintia.cn/problem-sets/14/problems/792解答C语言版#include<stdio.h>int main() { int operand1, operand2; char operatorC; scanf("%d %c %d", &operand1, &operatorC, &operand2); if (operatorC ==

2020-07-06 09:55:01 712

原创 PAT基础编程题目-7-11 分段计算居民水费

PAT基础编程题目-7-11 分段计算居民水费题目详情题目地址:https://pintia.cn/problem-sets/14/problems/791解答C语言版#include<stdio.h>int main() { int x; float y; scanf("%d", &x); if (x <= 15) y = 4 * x / 3.0; else y = 2.5 * x - 17.5; printf("%.2f", y); r

2020-07-06 09:48:22 1499

原创 PAT基础编程题目-7-10 计算工资

PAT基础编程题目-7-10 计算工资题目详情题目地址:https://pintia.cn/problem-sets/14/problems/790解答C语言版#include<stdio.h>int main(){ int age, time; float wage; scanf("%d %d", &age, &time); if (age < 5) { //新员工 if (time<=40) wage = 30 * time

2020-07-06 09:33:28 558 1

原创 PAT基础编程题目-7-9 用天平找小球

PAT基础编程题目-7-9 用天平找小球题目详情题目地址:https://pintia.cn/problem-sets/14/problems/789解答C语言版#include<stdio.h>int main() { int a, b, c; scanf("%d %d %d", &a, &b, &c); if (a == b) printf("C"); else if (a == c) printf("B"); else if (b

2020-07-06 09:26:11 328

原创 PAT基础编程题目-7-8 超速判断

PAT基础编程题目-7-8 超速判断题目详情题目地址:https://pintia.cn/problem-sets/14/problems/788解答C语言版#include<stdio.h>int main(){ int speed; scanf("%d", &speed); if (speed <= 60) printf("Speed: %d - OK", speed); if (speed > 60) printf("Speed: %

2020-07-06 09:19:04 368

原创 PAT基础编程题目-7-7 12-24小时制

PAT基础编程题目-7-7 12-24小时制题目详情题目地址:https://pintia.cn/problem-sets/14/problems/787解答C语言版#include<stdio.h>int main() { int hour, minute; scanf("%d:%d", &hour, &minute); if (hour<12) // 上午 { printf("%d:%d AM", hour, minute); } e

2020-07-05 10:49:01 499

原创 PAT基础编程题目-7-6 混合类型数据格式化输入

PAT基础编程题目-7-6 混合类型数据格式化输入题目详情题目地址:https://pintia.cn/problem-sets/14/problems/786解答C语言版#include<stdio.h>int main() { float f1, f2; int i; char c; scanf("%f %d %c %f", &f1, &i, &c, &f2); printf("%c %d %.2f %.2f\n", c, i,

2020-07-05 10:43:43 497

原创 PAT基础编程题目-7-5 表格输出

PAT基础编程题目-7-5 表格输出题目详情题目地址:https://pintia.cn/problem-sets/14/problems/785解答C语言版(1)#include<stdio.h>int main() { printf("------------------------------------\n"); printf("Province Area(km2) Pop.(10K)\n"); printf("-------------------

2020-07-05 09:58:42 493

原创 PAT基础编程题目-7-4 BCD解密

PAT基础编程题目-7-4 BCD解密题目详情题目地址:https://pintia.cn/problem-sets/14/problems/784解答C语言版#include<stdio.h>int main(){ int wrongNumber; scanf("%d", &wrongNumber); int BCD; BCD = wrongNumber / 16 * 10 + wrongNumber % 16; printf("%d", BCD); r

2020-07-05 09:44:49 411 1

原创 PAT基础编程题目-7-3 逆序的三位数

PAT基础编程题目-7-3 逆序的三位数题目详情题目地址:https://pintia.cn/problem-sets/14/problems/783解答C语言版#include<stdio.h>int main() { int array[3]; int number; scanf("%d", &number); for (int i = 0; i < 3; i++) { array[i] = number % 10; number = num

2020-07-05 09:38:49 3384

原创 PAT基础编程题目-7-2 然后是几点

PAT基础编程题目-7-2 然后是几点题目详情题目地址:https://pintia.cn/problem-sets/14/problems/782解答大家可能会遇到题目给的测试能通过,但提交的时候总是不通过。我这里给两个特殊的关键测试点,供大家测试和理解题目。输入:1120 110 输出:1310输入:1000 -588 输出:12C语言版#include<stdio.h>int main() { int minute, startTime, stop

2020-07-05 09:25:49 1561 3

原创 PAT基础编程题目-7-1 厘米换算英尺英寸

PAT基础编程题目-7-1 厘米换算英尺英寸题目详情题目地址:https://pintia.cn/problem-sets/14/problems/781解答C语言版#include<stdio.h>void Conversion(int cm);int main() { int cm; scanf("%d", &cm); Conversion(cm); return 0;}void Conversion(int cm) { int foot, in

2020-07-05 09:17:21 523

原创 PAT基础编程题目-6-13 折半查找

PAT基础编程题目-6-13 折半查找题目详情题目地址:https://pintia.cn/problem-sets/14/problems/44932C语言版#include<stdio.h>#define MAXSIZE 50typedef int KeyType;typedef struct{ KeyType key;} ElemType;typedef struct{ ElemType* R; int length;} SSTable;

2020-07-05 09:03:19 306 1

原创 PAT基础编程题目-6-12 判断奇偶性

PAT基础编程题目-6-12 判断奇偶性题目详情题目地址:https://pintia.cn/problem-sets/14/problems/744解答C语言版#include <stdio.h>int even(int n);int main(){ int n; scanf("%d", &n); if (even(n)) printf("%d is even.\n", n); else printf("%d is odd.\n", n);

2020-07-05 08:54:36 569

原创 PAT基础编程题目-6-11 求自定类型元素序列的中位数

PAT基础编程题目-6-11 求自定类型元素序列的中位数题目详情解答C语言版注:这里如果简单的使用冒泡等一般的排序方法是通过不了的,大N会卡时。使用希尔排序可以通过。#include <stdio.h>#define MAXN 1000typedef float ElementType;ElementType Median(ElementType A[], int N);int main(){ ElementType A[MAXN]; int N, i;

2020-07-05 08:48:31 305

原创 PAT基础编程题目-6-10 阶乘计算升级版

PAT基础编程题目-6-10 阶乘计算升级版题目详情题目地址:https://pintia.cn/problem-sets/14/problems/742解答C语言版#include <stdio.h>void Print_Factorial(const int N);int main(){ int N; scanf("%d", &N); Print_Factorial(N); return 0;}void Print_Factorial(con

2020-07-04 10:01:48 389

原创 PAT基础编程题目-6-9 统计个位数字

PAT基础编程题目-6-9 统计个位数字题目详情题目地址:https://pintia.cn/problem-sets/14/problems/741解答C语言版#include <stdio.h>int Count_Digit(const int N, const int D);int main(){ int N, D; scanf("%d %d", &N, &D); printf("%d\n", Count_Digit(N, D)); re

2020-07-04 09:54:43 411

原创 PAT基础编程题目-6-8 简单阶乘计算

PAT基础编程题目-6-8 简单阶乘计算题目详情解答C语言版#include <stdio.h>int Factorial(const int N);int main(){ int N, NF; scanf("%d", &N); NF = Factorial(N); if (NF) printf("%d! = %d\n", N, NF); else printf("Invalid input\n"); return 0;}int Factoria

2020-07-04 09:48:29 369

原创 PAT基础编程题目-6-7 统计某类完全平方数

PAT基础编程题目-6-7 统计某类完全平方数题目详情题目地址:https://pintia.cn/problem-sets/14/problems/739解答C语言版#include <stdio.h>#include <math.h>int IsTheNumber(const int N);int main(){ int n1, n2, i, cnt; scanf("%d %d", &n1, &n2); cnt = 0; fo

2020-07-04 09:39:23 302

原创 PAT基础编程题目-6-6 求单链表结点的阶乘和

PAT基础编程题目-6-6 求单链表结点的阶乘和题目详情解答C语言版#include <stdio.h>#include <stdlib.h>typedef struct Node* PtrToNode;struct Node int Data; // 存储结点数据 PtrToNode Next; // 指向下一个结点的指针 };typedef PtrToNode List; // 定义单链表类型 int FactorialSum(List L);

2020-07-04 09:33:07 218

原创 PAT基础编程题目-6-5 求自定类型元素的最大值

PAT基础编程题目-6-5 求自定类型元素的最大值题目详情解答C语言版#include <stdio.h>#define MAXN 10typedef float ElementType;ElementType Max(ElementType S[], int N);int main(){ ElementType S[MAXN]; int N, i; scanf("%d", &N); for (i = 0; i < N; i++) scanf

2020-07-04 09:27:01 287

原创 PAT基础编程题目-6-4 求自定类型元素的平均

PAT基础编程题目-6-4 求自定类型元素的平均题目详情解答C语言版#include <stdio.h>#define MAXN 10typedef float ElementType;ElementType Average(ElementType S[], int N);int main(){ ElementType S[MAXN]; int N, i; scanf_s("%d", &N); for (i = 0; i < N; i++)

2020-07-04 09:04:57 293

原创 PAT基础编程题目-6-3 简单求和

PAT基础编程题目-6-3 简单求和题目详情解答C语言版#include <stdio.h>#define MAXN 10int Sum(int List[], int N);int main(){ int List[MAXN], N, i; scanf("%d", &N); for (i = 0; i < N; i++) scanf("%d", &List[i]); printf("%d\n", Sum(List, N)); re

2020-07-04 09:00:21 360

原创 PAT基础编程题目-6-2 多项式求值

PAT基础编程题目-6-2 多项式求值题目详情【题目地址】:https://pintia.cn/problem-sets/14/problems/734解答C语言版#include <stdio.h>#define MAXN 10double f(int n, double a[], double x);int main(){ int n, i; double a[MAXN], x; scanf("%d %lf", &n, &x); for (

2020-07-04 08:55:41 566

原创 PAT基础编程题目-6-1 简单输出整数

PAT基础编程题目-6-1 简单输出整数题目详情6-1 简单输出整数本题要求实现一个函数,对给定的正整数N,打印从1到N的全部正整数。函数接口定义:void PrintN ( int N );其中N是用户传入的参数。该函数必须将从1到N的全部正整数顺序打印出来,每个数字占1行。【题目地址】:https://pintia.cn/problem-sets/14/problems/733解答C语言版#include <stdio.h>void PrintN(int N);i

2020-07-04 08:47:43 908

原创 阿里云轻量应用服务器环境搭建-Docker部署静态网站

阿里云轻量应用服务器环境搭建-Docker部署静态网站参考链接:https://www.cnblogs.com/longdb/p/10770661.html我这里使用的文件上传工具是FileZilla Client将本地的newera文件夹上传到/usr/share目录下在本地新建Dockerfile文件(等下也上传到/usr/share目录下),内容如下:# 设置基础镜像FROM nginx# 定义作者MAINTAINER lexiaoyuan# 将newera文件中的内容

2020-07-03 19:01:33 928 2

原创 阿里云轻量应用服务器环境搭建-Docker安装FastDFS镜像

阿里云轻量应用服务器环境搭建-Docker安装FastDFS镜像参考文章:https://www.cnblogs.com/provence666/p/10987156.html通过FastDFS镜像安装,可以省去很多很多的配置。下面开始。搜索镜像docker search fastdfs拉取镜像docker pull delron/fastdfs查看镜像docker images使用docker镜像构建tracker容器(跟踪服务器,起到调度的作用):

2020-07-03 18:52:35 1502

原创 阿里云轻量应用服务器环境搭建-Docker删除镜像

阿里云轻量应用服务器环境搭建-Docker删除镜像首先关闭容器查看正在运行的容器docker ps -a停止容器运行docker stop 6bf328b614c # 6bf328b614c是要停止的容器id再次查看, 发现容器还在,但已退出docker ps -a删除容器docker rm 6bf328b614c # 6bf328b614c是要删除的容器id,和上面的一样再次查看, 发现容器已被删除docker ps -a再删除镜像(一

2020-07-03 18:35:58 3007

原创 阿里云轻量应用服务器环境搭建-Docker安装tomcat

阿里云轻量应用服务器环境搭建-Docker安装tomcat参考链接:https://www.runoob.com/docker/docker-install-tomcat.html拉取官方的镜像:docker pull tomcat查看安装的镜像:docker images将在本地tomcat中运行成功的项目文件在Docker中的tomcat中运行将项目文件上传到root目录下(我这里使用的是FileZilla Client)在IDEA中通过tomcat运行的jav

2020-07-03 13:15:02 4248

new-era.zip

使用到的相关技术和一些库及插件: Vue+BootstrapVue+Webpack+Swiper+Layui+ vue-router+Vuex+VueI18n+animate.css+wow.js+HTML+CSS+JavaScript 使用Webpack进行打包,开发的SPA(single page web application,单页应用程序),页面由一系列的组件构成,在单页应用程序中,点击不同的模块,页面不会有刷新感,包括不同语言的切换,都不会感到刷新感。

2020-04-01

EasyMemo.zip

整合SSM项目,实现了一个完整的备忘录,支持登录,注册,增删改查等多种操作,前端页面非常美观,整合Bootstrap和layui部分组件,使用IDEA开发,功能完善强大,有拦截器。包含项目的完整代码。

2020-04-01

Online-Forum.zip

使用jdbc+servlet+jsp+DAO+javabean+oracle开发的一个简易的网上论坛,这里主要实现网上论坛的两个基本模块,即登录注册模块和留言板模块。登录注册模块主要包括用户登录、注册、忘记密码,留言板模块主要包括发表留言、回复留言、修改留言、删除留言、显示留言等功能。

2020-04-01

Static-Web-Development-Learning-Platform.zip

静态网页开发学习平台源码,包括多个前端页面(HTML+CSS)的源码,使用Bootstrap框架,页面美观,对学习使用Bootstrap框架很有帮助!

2020-04-01

2018年计算机能力应用大赛复赛真题

2018年计算机能力应用大赛复赛真题,包括填空题、设计题、改错题

2019-01-04

颐天之家的基础主页面设计样例

一个简单的小项目的初步主页面的设计,从前端确定该项目需要具备的功能

2019-01-02

C++的PPT-基本数据与表达式

C++基础数据与表达式的PPT教程资料,介绍了一些C语言中的基础知识

2019-01-02

前端开发react.js

react是优秀的前端开发框架,有一系列优秀的组件,react.js是前端开发不可少的重要工具

2018-09-21

browser.js

前端开发可能会用到的JavaScript脚本,browser.js文件

2018-09-21

angular.js

前端开发技术中的所需要用到的JavaScript库,angular.js,

2018-09-21

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除