自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(33)
  • 收藏
  • 关注

原创 2020年第六届美亚杯个人资格赛题目复现

2020年第六届美亚杯个人资格赛题目来源案例背景2020年9月,数名信用卡持有人向警方报案,指他们的信用卡被不知名人士在一家本地网上商店购买手机。订单大部分来自海外的网络地址,但有一宗订单来自本地。警方经调查后发现该本地网络地址的注册地址。上门后在该处发现陈慧贤,她否认与案件有关。警方在现场检获一部笔记本计算机、一部手提电话及一个外置储存装置。在场的初步应变小队在检取证物前,曾为现场环境及证物拍照。另外, 调查队伍亦由网络供货商及网上商店取得了一些与案有关的资料。现在你被委派处理这宗案件, 请由以下

2021-11-11 14:08:44 18203 3

原创 C++使用到的gcd函数

__gcd()函数__gcd(x,y);int、long long类型都可以,需要注意的是两个类型必须要相同,还有不能用浮点型,当然手写gcd函数也是可以的,它头文件是algorithm。例题,当分字分母同为质数的时候就会进行 ans++;#include <iostream>#include <algorithm>using namespace std;int main(){ int ans=0; for(int i=1;i<=2020;i++) {

2021-04-23 19:09:12 6974

原创 第十一届蓝桥杯大赛软件类省赛第二场 C&&C++大学 B组

第十一届蓝桥杯大赛软件类省赛第二场 C&&C++大学 B组试题A:门牌制作思路:1到2020之间的数字少,可直接采用一个循环,然后对里面的每一个数字进行查找#include<iostream>using namespace std;int main(){ int sum=0; for(int i=1;i<=2020;i++){ int x=i,t; //对里面的每个数字进行判断 while(x>0){ t=x%10; x

2021-04-23 19:07:23 219

原创 CTF-All-In-One(CTF 从入门到放弃)笔记1

CTF-All-In-One(CTF 从入门到放弃)笔记1CTF简介概述CTF(Capture The Flag)中文一般译作夺旗赛,在网络安全领域中指的是网络安全技术人员之间进行技术竞技的一种比赛形式。CTF起源于1996年DEFCON全球黑客大会,以代替之前黑客们通过互相发起真实攻击进行技术比拼的方式。发展至今,已经成为全球范围网络安全圈流行的竞赛形式,2013年全球举办了超过五十场国际性CTF赛事。而DEFCON作为CTF赛制的发源地,DEFCON CTF也成为了目前全球最高技术水平和影响力的C

2021-04-22 21:45:31 1101

原创 怎么给DevC++编译器加上“C++11”

打开dev C++点击“工具(tools)–》编译选项(Compile Options)”

2021-04-17 17:41:04 444

原创 Missing Numbers

链接:https://ac.nowcoder.com/acm/contest/13168/D来源:牛客网时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 131072K,其他语言262144K64bit IO Format: %lld题目描述You enjoy your new job as a teacher of young children. It’s fun to see them learning to count, recognize letters, draw, and

2021-04-12 14:32:33 163

原创 Codeforces Round #712 (Div. 2). Balance the Bits

C. Balance the Bitstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA sequence of brackets is called balanced if one can turn it into a valid math expression by adding characters ‘+’ and ‘1’. For exa

2021-04-11 11:40:31 116

原创 Codeforces Round #712 (Div. 2)B. Flip the Bits

B. Flip the Bitstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere is a binary string a of length n. In one operation, you can select any prefix of a with an equal number of 0 and 1 symbols. Then

2021-04-11 11:39:40 198

原创 Codeforces Round #712 (Div. 2)A. Déjà Vu

A. Déjà Vutime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA palindrome is a string that reads the same backward as forward. For example, the strings “z”, “aaa”, “aba”, and “abccba” are palindromes,

2021-04-10 00:03:36 210

原创 VMware虚拟机安装Ubuntu 20的详细过程

准备工作安装好虚拟机VMwareUbuntu镜像准备来源:Ubuntu官方网站:

2021-03-27 20:08:09 1040 5

原创 Codeforces Round #708 (Div. 2)B. M-arrays

B. M-arraystime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output题目描述You are given an array a1,a2,…,an consisting of n positive integers and a positive integer m.You should divide elements of this array

2021-03-21 17:45:23 141 1

原创 Good Bye 2014 C. New Year Book Reading

C. New Year Book Readingtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output题目描述New Year is coming, and Jaehyun decided to read many books during 2015, unlike this year. He has n books numbered by int

2021-03-21 14:36:39 92

原创 Codeforces Round #708 (Div. 2)A. Meximization

A. Meximizationtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output题目描述You are given an integer n and an array a1,a2,…,an. You should reorder the elements of the array a in such way that the sum of MEX

2021-03-21 14:33:59 240

原创 Codeforces Round #706 (Div. 2)A. Split it!

A. Split it!time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputKawashiro Nitori is a girl who loves competitive programming.题目描述One day she found a string and an integer. As an advanced problem sette

2021-03-15 14:58:18 131

原创 Codeforces Round #704 (Div. 2)A. Three swimmers

A. Three swimmerstime limit per test1 secondmemory limit per test512 megabytesinputstandard inputoutputstandard outputThree swimmers decided to organize a party in the swimming pool! At noon, they started to swim from the left side of the pool.It tak

2021-03-14 12:17:10 100

原创 Codeforces Global Round 13A. K-th Largest Value

A. K-th Largest Valuetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an array a consisting of n integers. Initially all elements of a are either 0 or 1. You need to process q queries o

2021-03-01 12:16:44 172

原创 Codeforces Round #309 (Div. 2)A. Kyoya and Photobooks

A. Kyoya and Photobookstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output题目描述Kyoya Ootori is selling photobooks of the Ouran High School Host Club. He has 26 photos, labeled “a” to “z”, and he has c

2021-02-22 01:03:06 108

原创 Codeforces Round #165 (Div. 2)A. Fancy Fence

A. Fancy Fencetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputEmuskald needs a fence around his farm, but he is too lazy to build it himself. So he purchased a fence-building robot.He wants the fe

2021-02-21 01:23:22 250

原创 Codeforces Round #703 (Div. 2)A. Shifting Stacks

A. Shifting Stackstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have stacks of blocks. The -th stack contains blocks and it’s height is the number of blocks in it. In one move you can take a

2021-02-20 23:19:08 219 3

原创 HDU 1241

题目描述2020年6月3日,征战了7年LQL联赛的丁丁妹宣布退役,总所周知,丁丁妹效力于GNR队,因为一次次精彩的操作被称为yyds,但可惜在最有分量的M比赛中没有拿到过冠军。退役后丁丁妹想要去发展自己的宝藏产业,她的宝藏储存地为nm的矩形,每个位置用代表空的地方,@代表有宝藏的地方。某些宝藏处相连(最近的八个位置,上下左右,斜线),他们被称为同一块宝藏。问有多少块宝藏处?Input有多组测试数据每组测试数据两个数n,m接下来n行,每行为1个长度为m且只包含’*‘和’@'的字符串1<=n,

2021-02-18 00:07:42 124

原创 Codeforces Round #699 (Div. 2)A. Space Navigation

A. Space Navigationtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou were dreaming that you are traveling to a planet named Planetforces on your personal spaceship. Unfortunately, its piloting sy

2021-02-08 19:16:43 151

原创 Codeforces Round #699 (Div. 2) B. New Colony

B. New Colonytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAfter reaching your destination, you want to build a new colony on the new planet. Since this planet has many mountains and the colony m

2021-02-08 18:59:23 177 1

原创 Good Bye 2014 -A. New Year Transportation

“直线世界”的新年正在到来!在这个世界中,有 n 个单元格,用从 1 到 n 的整数编号,成为一个 1 × n 的棋盘。人们生活在单元格中。然而,难以在不同单元格之间移动,因为逃离单元格具有难度。因此,小贝制作了一套在这些单元格之间移动的运输系统,来庆祝新年。首先,她考虑了 n - 1 个正整数 a1, a2, …, an - 1 。对于每个整数 i (其中 1 ≤ i ≤ n - 1),满足条件 1 ≤ ai ≤ n - i 。其次,他制作了 n - 1 个传送门,使用从 1 到 n - 1 的整数编号

2021-02-01 16:27:31 136

原创 ACM--Shooting

D - ShootingRecently Vasya decided to improve his pistol shooting skills. Today his coach offered him the following exercise. He placed n cans in a row on a table. Cans are numbered from left to right from 1 to n. Vasya has to knock down each can exactly

2020-11-29 09:47:51 169

原创 centos 7 系统下安装 DNS 服务器

DNS 服务器安装以及配置分为三个 部分一、安装 bind 软件二、正向解析配置三、逆向解析配置一、安装 bind 软件可以通过rpm -qa | grep bind*来查找所有有关 bind 的文件通过yum安装所需的BIND软件,系统光盘中自带了BIND服务的安装文件yum -y install bind*注意如果在centos中使用yum安装软件时可能出现Could not retrieve mirrorlist,这种情况一般是网络出现问题。1、如果配置的DHCP动态网络,则

2020-07-24 18:24:11 443

原创 CentOS 7 下 webmin的安装

安装 webmin 这个过程总结为三个部分一、webmin 软件包的下载二、传输到CentOS 7上进行软件安装三、webmin 服务器开启,在浏览器中即可进行访问一、webmin 软件包的下载安装 webmin,就必须先要下载webmin 的安装包,下载 tar.gz 结尾的那一个下载网站:http://www.webmin.com/download.html二、传输到CentOS 7上进行软件安装由于我是在主机下载的,我就需要借助主机的软件WinSCP, 在虚拟机中输入ifconfig

2020-07-20 18:42:58 1473

原创 安装VMware后,本机网络适配器中没有虚拟网卡的解决方法

遇到错误:安装VMware Workstation Pro 后,在主机的打开控制面板–网络和Internet–网络连接后,没有显示虚拟网卡,导致虚拟机无法上网。通常第一次安装 VMware ,电脑会自动产生这些虚拟网卡,通常是安装过后,由于某些原因卸载了VMware ,但是没有卸载干净,再次安装时就会出现这种情况。1、首先,在桌面搜索栏输入“服务”,点击“服务(应用)”进入把这两个服务修改为自动(下图时我已经修改好了的)2、卸载 VMawre 软件,然后在官网下载 CCleaner 软件,按照说明进

2020-07-20 15:05:24 16188 14

原创 在虚拟机中安装Windows server 2003 详细图文安装过程

虚拟机中 Windows Server 2003 Standard Edition安装的详细过程安装分为三部分一、下载映像文件二、VMware安装Windows Server 2003 Standard Edition的初等步骤三、放入镜像之后的安装过程一、下载映像文件我在百度找了一下午,下载了好几个,最后找了一个64位,但安装过程需要密匙,又在网上找了一大堆的密匙都无效,这是我们团队的小伙伴分享给我的,属于32位,安装不需要密匙百度网盘链接:https://pan.baidu.com/s/1

2020-07-01 21:46:05 40769 35

原创 单链表分段逆转

6-1 单链表分段逆转 (25分)给定一个带头结点的单链表和一个整数K,要求你将链表中的每K个结点做一次逆转。例如给定单链表 1→2→3→4→5→6 和 K=3,你需要将链表改造成 3→2→1→6→5→4;如果 K=4,则应该得到 4→3→2→1→5→6。函数接口定义:void K_Reverse( List L, int K );其中List结构定义如下:typedef struct Nod...

2020-03-20 09:41:47 875

原创 PTA函数题 逆序数据建立链表

本题要求实现一个函数,按输入数据的逆序建立一个链表。函数接口定义:struct ListNode *createlist();函数createlist利用scanf从输入中获取一系列正整数,当读到−1时表示输入结束。按输入数据的逆序建立一个链表,并返回链表头指针。链表节点结构定义如下:struct ListNode {int data;struct ListNode *next;};裁...

2020-03-16 10:50:58 2071

原创 PTA函数题 学生成绩链表处理

6-39 学生成绩链表处理 (20分)本题要求实现两个函数,一个将输入的学生成绩组织成单向链表;另一个将成绩低于某分数线的学生结点从链表中删除。函数接口定义:struct stud_node *createlist();struct stud_node *deletelist( struct stud_node *head, int min_score );函数createlist利用sca...

2020-03-16 10:31:21 1133

原创 建立学生信息链表

函数接口定义:void input();该函数利用scanf从输入中获取学生的信息,并将其组织成单向链表。链表节点结构定义如下:struct stud_node {int num; /*学号*/char name[20]; /*姓名*/int score; /*成绩*/struct stud_no...

2020-03-16 10:17:26 591

原创 求素数的三种方法

求素数的三种方法其中都是如果p是素数返回整数1,如果不是素数返回整数0;1.如果i在2到p-1之间任取一个数,如果n能被整除则不是素数,否则就是素数int prime( int p ){ int i,flag=1; if(p<=1) flag=0; else{ for(i=2;i<=p-1;i++) if(p%i==0){ flag=0; b...

2020-03-14 10:06:34 2838 2

空空如也

空空如也

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

TA关注的人

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