自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 基于andoird的计步器(全代码)

收集了一些资料整理了一个简单计步器,带简单界面,作课程设计的。网上很多都不能用,或者是项目太大,分享一下自己弄的,帮助一下像我这样的苦孩子。最后贴上了运行结果和目录结构。怎么进行改进就看自己了。权限:<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.step"&g

2020-07-07 14:20:11 51

转载 cisco配置hsrp配置

转:https://blog.csdn.net/kadwf123/article/details/103700247?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522159361207919725219949807%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=159361207919725219949807&am.

2020-07-02 15:08:04 162

原创 github电脑上不去(亲测有效)

windows下路径为:C:\Windows\System32\drivers\etc\hosts(把hosts移到左面,添加好下面几行,在移到原来位置) Linux下路径:/etc/hosts192.30.253.113 github.com192.30.253.113 github.com192.30.253.118 gist.github.com192.30.253.119 gist.github.com...

2020-05-31 10:09:59 993 2

原创 RSA加密及AES对称加密代码实现

最近老师布置了两个加密的作业,记录一下编码过程及遇到的问题。对于RSA解密基本内容这里就不赘述,直接说一下编码过程把:1:N = p*q(p、q互质,即公约数只有1)可以用辗转相除去判断2:L是p-1和q-1的最小公倍数。如果减一后仍互质,则为乘积。否则最小公倍数=两数的乘积/最大公约数3:求E:1<E<L并且要满足E,L互质4:求D:1<E<L 并且要...

2020-04-17 16:54:58 79

原创 Bits Reverse

题目描述Now given two integers x and y, you can reverse every consecutive three bits in arbitrary number’s binary form (any leading zero can be taken into account) using one coin. Reversing (1,2,3) mean...

2019-05-02 12:01:24 76

原创 Sequence in the Pocket

Time Limit:1 Second Memory Limit:65536 KBDreamGrid has just found an integer sequencein his right pocket. As DreamGrid is bored, he decides to play with the sequence. He can perform the fol...

2019-04-27 17:46:01 225

原创 Lucky 7

BaoBao has just found a positive integer sequenceof lengthfrom his left pocket and another positive integerfrom his right pocket. As number 7 is BaoBao's favorite number, he considers a positive...

2019-04-27 13:17:17 132

原创 Doki Doki Literature Club

Doki Doki Literature Club!is a visual novel developed by Team Salvato. The protagonist is invited by his childhood friend, Sayori, to join their high school's literature club. The protagonist then me...

2019-04-27 13:14:35 166

原创 King of Karaoke

It's Karaoke time! DreamGrid is performing the songPowder Snowin the gameKing of Karaoke. The song performed by DreamGrid can be considered as an integer sequence, and the standard version of the ...

2019-04-27 13:13:31 105

原创 Peak

A sequence ofintegersis called a peak, if and only if there exists exactly one integersuch that, andfor all, andfor all.Given an integer sequence, please tell us if it's a peak or not....

2019-04-27 13:12:40 81

原创 Frogger

传送门解题思路:输入n个点的坐标,第一个为始点,第二个位终点,其余的点都是这两点之间的点,求从起始点到终点的所有路径中最大边的最小的一个。解题思路:单源最短路的变形直接改SPFA就可以dis[i]在本题的意思是,点i到起来路径中最大的路径,if(dis[j] > max(dis[i],a[i][j])){ dis[j] = max(dis[...

2019-04-26 00:01:58 21

原创 Til the Cows Come Home(最短路)

Bessie is out in the field and wants to get back to the barn to get as much sleep as possible before Farmer John wakes her for the morning milking. Bessie needs her beauty sleep, so she wants to get b...

2019-04-25 20:38:45 25

原创 Subsequence

Give a stringSSandNNstringT_iTi​, determine whetherT_iTi​is a subsequence ofSS.If ti is subsequence ofSS, printYES,else printNO.If there is an array\lbrace K_1, K_2, K_3,\cdots, K_m \...

2019-04-20 19:53:13 362

原创 Coloring Game

David has a white board with2 \times N2×Ngrids.He decides to paint some grids black with his brush.He always starts at the top left corner and ends at the bottom right corner, where grids should be ...

2019-04-20 19:34:47 82

原创 Diverse Garland

time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have a garland consisting ofnnlamps. Each lamp is colored red, green or blue....

2019-04-20 19:15:43 110

原创 Distance

There arennpoints on a horizontal line, labelled with11throughnnfrom left to right.The distance between theii-th point and the(i+1)(i+1)-th point isaiai.For each integerkkranged from11...

2019-04-17 20:39:46 53

原创 Potion

Time Limit:1 Second Memory Limit:65536 KBBaoBao is brewing a magical potion. To brew this potion,types of ingredients, whose rank ranges from 1 to, is needed. More precisely, for all, ...

2019-04-14 17:59:01 94

原创 Thanks, TuSimple!

ime Limit:1 Second Memory Limit:65536 KBIn the very first sentence of the very first problem, we would like to give our sincere thanks to TuSimple, the sponsor of this contest.Founded in 20...

2019-04-14 17:56:19 168

原创 Odd Gnome

题目描述According to the legend of Wizardry and Witchcraft, gnomes live in burrows underground, known as gnome holes. There they digup and eat the roots of plants, creating little heaps of earth around...

2019-04-13 17:20:04 52

原创 Greeting Card

题目描述Quido plans to send a New Year greeting to his friend Hugo. He has recently acquired access to an advanced high-precision plotter and he is planning to print the greeting card on the plotter.He...

2019-04-13 16:57:29 99

原创 Bumped!(dijskra)

题目描述Peter returned from the recently held ACM ICPC World finals only to find that his return flight was overbooked and he was bumped from the flight! Well, at least he wasn’t beat up by theairline ...

2019-04-12 23:43:53 66

原创 Go Latin

题目描述There are English words that you want to translate them into pseudo-Latin. To change an English word into pseudo-Latin word, you simply change the end of the English word like the following tabl...

2019-04-12 17:17:10 120

原创 Bulbs

题目描述Greg has an m × n grid of Sweet Lightbulbs of Pure Coolness he would like to turn on. Initially, some of thebulbs are on and some are off. Greg can toggle some bulbs by shooting his laser at th...

2019-04-10 21:12:52 209

原创 Ingenious Lottery Tickets

题目描述Your friend Superstitious Stanley is always getting himself into trouble. This time, in his Super Lotto Pickand Choose plan, he wants to get rich quick by choosing the right numbers to win the ...

2019-04-10 20:47:51 34

原创 Congestion Charging Zone

题目描述Tehran municipality has set up a new charging method for the Congestion Charging Zone (CCZ) which controls the passage of vehicles in Tehran’s high-congestion areas in the congestion period (CP)...

2019-04-08 19:28:01 104

原创 Hakase and Nano

题目描述Hakase and Nano are playing an ancient pebble game (pebble is a kind of rock). There are n packsof pebbles, and the i-th pack contains ai pebbles. They take turns to pick up pebbles. In each tu...

2019-04-06 22:10:04 36

原创 Super-palindrome

题目描述You are given a string that is consisted of lowercase English alphabet. You are supposed to change itinto a super-palindrome string in minimum steps. You can change one character in string to a...

2019-04-06 19:49:46 76

原创 Master of GCD

题目描述Hakase has n numbers in a line. At fi rst, they are all equal to 1. Besides, Hakase is interested in primes. She will choose a continuous subsequence [l, r] and a prime parameter x each time and...

2019-04-06 19:04:35 36

原创 流连人间的苏苏

题目描述苏苏在做红尘仙的任务时,发现坐落于风景秀丽、四季如春的昆明市的云南中医学院。没过多久,苏苏就喜欢上了这个学校。以致于苏苏忘了回涂山的时间,现在她只剩下d天的时间待在云南中医学院。由于时间紧迫,苏苏想方设法为建设更好的云南中医学院。假设学校里某条街道有n个房子。每天选择两个门牌号l、r,给这两个门牌号之间的所有房子的门前都栽一棵树,已经有树的不需要再种。苏苏想知道在某天,...

2019-04-05 10:20:24 42

原创 不存在的泳池

小w是云南中医学院的同学,有一天他看到了学校的百度百科介绍:截止到2014年5月,云南中医学院图书馆纸本藏书74.8457万册,纸质期刊388种,馆藏线装古籍图书1.8万册,电子资源总量35TB,拥有中、外文数据库25个,电子图书29.5万册(镜像)、包库130万册。古籍线装图书1.8万余册,有39种列为本馆珍善本,如《彻滕八编》、《赵氏医贯》等明清版本、台湾文渊阁版本《四库全书》,按《全国古籍...

2019-04-05 09:43:56 36

原创 L2-032 彩虹瓶 (25 分)

彩虹瓶的制作过程(并不)是这样的:先把一大批空瓶铺放在装填场地上,然后按照一定的顺序将每种颜色的小球均匀撒到这批瓶子里。假设彩虹瓶里要按顺序装 N 种颜色的小球(不妨将顺序就编号为 1 到 N)。现在工厂里有每种颜色的小球各一箱,工人需要一箱一箱地将小球从工厂里搬到装填场地。如果搬来的这箱小球正好是可以装填的颜色,就直接拆箱装填;如果不是,就把箱子先码放在一个临时货架上,码放的方法就是一箱一箱...

2019-04-01 23:59:15 85

原创 L2-031 深入虎穴 (25 分)

著名的王牌间谍 007 需要执行一次任务,获取敌方的机密情报。已知情报藏在一个地下迷宫里,迷宫只有一个入口,里面有很多条通路,每条路通向一扇门。每一扇门背后或者是一个房间,或者又有很多条路,同样是每条路通向一扇门…… 他的手里有一张表格,是其他间谍帮他收集到的情报,他们记下了每扇门的编号,以及这扇门背后的每一条通路所到达的门的编号。007 发现不存在两条路通向同一扇门。内线告诉他,情报就藏在迷...

2019-04-01 20:38:56 59

转载 python encode(),编码和解码

前言:我们知道,计算机是以二进制为单位的,也就是说计算机只识别0和1,也就是我们平时在电脑上看到的文字,只有先变成0和1,计算机才会识别它的意思。这种数据和二进制的转换规则就是编码。计算机的发展中,有ASCII码,GBK,Unicode,utf-8编码。我们先从编码的发展史了解一下编码的进化过程。编码发展史美国人发明了计算机,用八位0和1的组合,一一对应英文中的字符,整出了一个表...

2019-03-28 20:28:27 493

原创 帅到没朋友

当芸芸众生忙着在朋友圈中发照片的时候,总有一些人因为太帅而没有朋友。本题就要求你找出那些帅到没有朋友的人。输入格式:输入第一行给出一个正整数N(≤100),是已知朋友圈的个数;随后N行,每行首先给出一个正整数K(≤1000),为朋友圈中的人数,然后列出一个朋友圈内的所有人——为方便起见,每人对应一个ID号,为5位数字(从00000到99999),ID间以空格分隔;之后给出一个正整数M(≤1...

2019-03-26 22:21:30 42

原创 全排列(DFS)

#include<cstdio>#include<iostream>using namespace std;const int maxn = 10000;bool visit[maxn];int n;int p[maxn];void ope(int a){ if(a > n){ for(int i = 1;i <...

2019-03-23 10:32:29 80

原创 愿天下有情人都是失散多年的兄妹

呵呵。大家都知道五服以内不得通婚,即两个人最近的共同祖先如果在五代以内(即本人、父母、祖父母、曾祖父母、高祖父母)则不可通婚。本题就请你帮助一对有情人判断一下,他们究竟是否可以成婚?输入格式:输入第一行给出一个正整数N(2≤N≤10​4​​),随后N行,每行按以下格式给出一个人的信息:本人ID 性别 父亲ID 母亲ID其中ID是5位数字,每人不同;性别M代表男性、F代表女...

2019-03-19 21:18:27 91

原创 淘宝美食(pyspider)

代码还需要优化,可以根据需要修改(加代理……)#!/usr/bin/env python# -*- encoding: utf-8 -*-# Created on 2019-03-18 22:00:28# Project: taobaofrom pyspider.libs.base_handler import *from pyquery import PyQuery as ...

2019-03-19 19:14:04 213

原创 情人节

以上是朋友圈中一奇葩贴:“2月14情人节了,我决定造福大家。第2个赞和第14个赞的,我介绍你俩认识…………咱三吃饭…你俩请…”。现给出此贴下点赞的朋友名单,请你找出那两位要请客的倒霉蛋。输入格式:输入按照点赞的先后顺序给出不知道多少个点赞的人名,每个人名占一行,为不超过10个英文字母的非空单词,以回车结束。一个英文句点.标志输入的结束,这个符号不算在点赞名单里。输出格式:根据点...

2019-03-17 19:54:25 69

原创 点赞 (裸结构体排序)

微博上有个“点赞”功能,你可以为你喜欢的博文点个赞表示支持。每篇博文都有一些刻画其特性的标签,而你点赞的博文的类型,也间接刻画了你的特性。本题就要求你写个程序,通过统计一个人点赞的纪录,分析这个人的特性。输入格式:输入在第一行给出一个正整数N(≤1000),是该用户点赞的博文数量。随后N行,每行给出一篇被其点赞的博文的特性描述,格式为“KF​1​​⋯F​K​​”,其中1≤K≤10,F​i...

2019-03-17 19:43:32 72

原创 出生年

以上是新浪微博中一奇葩贴:“我出生于1988年,直到25岁才遇到4个数字都不相同的年份。”也就是说,直到2013年才达到“4个数字都不相同”的要求。本题请你根据要求,自动填充“我出生于y年,直到x岁才遇到n个数字都不相同的年份”这句话。输入格式:输入在一行中给出出生年份y和目标年份中不同数字的个数n,其中y在[1, 3000]之间,n可以是2、或3、或4。注意不足4位的年份要在前...

2019-03-17 19:26:10 641

空空如也

空空如也

空空如也

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

TA关注的人 TA的粉丝

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