自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(26)
  • 资源 (8)
  • 收藏
  • 关注

原创 B - 歌德巴赫猜想

Sample Input 10 Sample Output 3 7 哥德巴赫猜想认为“每一个大于2的偶数,都能表示成两个质数之和”。 给定一个大于2的偶数N,你能找到两个质数P和Q满足P<=Q并且P+Q=N吗? Inp...

2018-03-25 20:57:04 302

转载 G - Lunch Time

The 999th Zhejiang Provincial Collegiate Programming Contest will be held in Marjar University. The canteen of Marjar University is making preparations for this grand competition. The canteen provide...

2018-03-21 20:33:40 263

转载 H - May Day Holiday

As a university advocating self-learning and work-rest balance, Marjar University has so many days of rest, including holidays and weekends. Each weekend, which consists of Saturday and Sunday, is a ...

2018-03-21 19:02:58 543

原创 B. World Cup

B. World Cuptime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe last stage of Football World Cup is played using the play-off system.There ...

2018-03-17 18:16:27 536

转载 B - Barnicle

Barney is standing in a bar and starring at a pretty girl. He wants to shoot her with his heart arrow but he needs to know the distance between him and the girl to make his shot accurate. Barney a...

2018-03-14 21:41:35 253

转载 D. Two Sets

Two Setstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle X has n distinct integers: p1, p2, ..., pn. He wants to divide all of them into two ...

2018-03-04 16:52:49 368

原创 C. 24 Game

C. 24 Gametime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle X used to play a card game called "24 Game", but recently he has found it too easy...

2018-03-04 14:04:39 124

转载 B. Chat Online

time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle X and Little Z are good friends. They always chat online. But both of them have schedules.Li...

2018-03-04 13:01:15 236

原创 H - Maximize!

You are given a multiset S consisting of positive integers (initially empty). There are two kind of queries:Add a positive integer to S, the newly added integer is not less than any number in it.Find ...

2018-03-03 15:27:30 238

转载 C - Convenient For Everybody

In distant future on Earth day lasts for n hours and that's why there are n timezones. Local times in adjacent timezones differ by one hour. For describing local time, hours numbers from 1 to n are us...

2018-03-03 09:59:24 313

原创 B - Vile Grasshoppers

The weather is fine today and hence it's high time to climb the nearby pine and enjoy the landscape.The pine's trunk includes several branches, located one above another and numbered from 2 to y. Some...

2018-03-02 14:25:38 240

原创 A - Word Correction

Victor tries to write his own text editor, with word correction included. However, the rules of word correction are really strange.Victor thinks that if a word contains two consecutive vowels, then it...

2018-03-02 14:24:40 188

转载 C - Old Berland Language

Berland scientists know that the Old Berland language had exactly n words. Those words had lengths of l1, l2, ..., ln letters. Every word consisted of two letters, 0 and 1. Ancient Berland people spok...

2018-03-02 10:57:34 244

原创 A - Minimum Modular

You have been given n distinct integers a1, a2, ..., an. You can remove at most k of them. Find the minimum modular m (m > 0), so that for every pair of the remaining integers (ai, aj), the follow...

2018-03-01 21:10:10 205

原创 C. Inna and Dima

Inna and Dimatime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputInna and Dima bought a table of size n × m in

2018-02-07 16:00:10 228 1

原创 C. Dima and Salad

Dima and Saladtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputDima, Inna and Seryozha have gathered in a ro

2018-02-07 15:24:12 172

原创 B. Inna and Nine

Inna and Ninetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputInna loves digit 9 very much. That's why she a

2018-02-06 15:55:55 188

原创 A. Inna and Pink Pony

Inna and Pink Ponytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputDima and Inna are doing so great! At the

2018-02-06 14:43:15 213

转载 A - Milk Patterns

Farmer John has noticed that the quality of milk given by his cows varies from day to day. On further investigation, he discovered that although he can't predict the quality of milk from one day to th

2018-02-05 15:23:57 115

原创 F - Assign the task

There is a company that has N employees(numbered from 1 to N),every employee in the company has a immediate boss (except for the leader of whole company).If you are the immediate boss of someone,that

2018-02-05 10:49:49 265

转载 并查集——简单易懂(内附并查集删除操作)

并查集并查集的定义并查集是一种树型的数据结构,用于处理一些不相交集合(Disjoint Sets)的合并及查询问题。常常在使用中以森林来表示。集就是让每个元素构成一个单元素的集合,也就是按一定顺序将属于同一组的元素所在的集合合并。并查集的用途维护一个无向图的连通性,判断n个点m条边时最少加多少边可以连通所有点判断在一个无向图中,两点间加边是否会产生环(最

2018-02-04 15:48:57 5496 1

原创 F - Assign the task

Painting some colored segments on a line, some previously painted segments may be covered by some the subsequent ones.Your task is counting the segments of different colors you can see at last.

2018-02-04 13:41:07 134

原创 D - Just a Hook

In the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes. The hook is made up of several consecutive metallic sticks which are of the same length. No

2018-02-04 09:31:15 202

原创 A - Color the ball

N个气球排成一排,从左到右依次编号为1,2,3....N.每次给定2个整数a b(a Input每个测试实例第一行为一个整数N,(N 当N = 0,输入结束。Output每个测试实例输出一行,包括N个整数,第I个数代表第I个气球总共被涂色的次数。Sample Input31 12 23 331 11 21 30Sample Output1 1 13 2 1

2018-02-02 14:17:32 338

原创 C - Mayor's posters

The citizens of Bytetown, AB, could not stand that the candidates in the mayoral election campaign have been placing their electoral posters at all places at their whim. The city council has finally d

2018-02-01 16:42:38 128

转载 B - I Hate It

很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。 这让很多学生很反感。 不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。本题目包含多组测试,请处理到文件结束。 在每个测试的第一行,有两个正整数 N 和 M ( 0学生ID编号分别从1编到N。 第二行包含N个整数,代

2018-01-31 10:25:29 176

OV7725两个颜色追踪.zip

采用了Easytrace,实现了对两个颜色追踪,使用的是OV7725,借鉴了别人的代码,移植到正点原子的精英板上,在LCD上框选出两种颜色!

2019-07-31

平衡杆代码2.0.zip

双环PID,角度环加位置环,控制平衡杆竖直并且小车在原点附近移动!采用两个步进电机配合两个牛眼轮作为小车部件!通过高精度电位器来读取杆子的角度位置!代码中的步进电机控制方法和PID思想很适合新手学习PID!

2019-07-27

帆板控制系统.zip

PID调试帆板控制系统!只有一个环的PID,基本操作都在主函数中,代码清晰,简单,适合新手PID的入门

2019-07-27

舵机控制函数终极版还有附赠步进电机的位置控制

本函数采用STM32F103核心板控制。主要函数包含在timersteer和stepmotor的头文件中, timersteer中是舵机控制函数,分为我写的五个单个舵机控制函数steer1-5,可控角度和速度!其中 我还写了一个舵机联动函数steer_linkage,可控四个舵机同时运动!(当然这个文件里还有我写的一些 舵机动作,大家忽略即可)另一个是stepmotor函数,主要是简单地控制步进电机到达一个绝对位置! 所有函数均可用usmart通过串口控制! 祝大家学习愉快!

2019-04-22

适合的新手-CNN代码

使用python编写,代码简单,清晰,非常适合新手的入门!

2019-02-17

舵机的串口调试程序

本程序为舵机串口调试程序!使用STM32的串口1进行通信!该程序无需舵机控制板,只需要单片机的IO口控制!硬件要求低! 并且可以通过该程序的全局变量steertime来更改舵机的控制速度!经本人测试适用于180度舵机,270度舵机和300度舵机!

2018-10-26

STM32各类小软件集合

STM32各类小开发实用工具!!!包括ST LINK驱动及教程,STM32 USB虚拟串口驱动,STM32串口下载软件(FLYMCU),串口监视软件串口摄像头软件,串口调试助手,汉字内码查询 反查询,网络调试助手,中英文字符编码查询_V1.1以及字库制作软件!!! 希望大家学习愉快!!!

2018-08-19

STM32入门程序详细设计!包括跑马灯,按键,串口等试验

STM32入门教程!!希望大家可以排上用场!STM32入门比较困难!希望不要放弃,我们要迎难而上!

2018-08-19

空空如也

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

TA关注的人

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