自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 Vue与Springboot跨域问题以及nginx部署

一、首先解决本地开发环境的跨域1. springboot配置全局跨域 // 全局跨域,添加所有的mapping,methods,origins等package com.zty.springboot01login.Config;import org.springframework.context.annotation.Configuration;import org.springframework.http.HttpHeaders;import org.springframework.web.s

2021-01-14 22:18:06 622

原创 三、搜索和二分 [Cloned] S - 搜索

原题:定义一个二维数组: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0,};它表示一个迷宫,其中的1表示墙壁,0表示可以走的路,只能横着走或竖着走,不能斜着走,要求编程序找出从左上角到右下角的最短路线。题意:中文...

2018-08-05 09:40:06 169

原创 三、搜索和二分 [Cloned] R - 搜索

原题:You're in space. You want to get home. There are asteroids. You don't want to hit them. 题意:你在太空中,用三维矩阵给出你可以走的路线,和你开始位置和要去的位置。题解:用广搜,因为只需要求出需要的步数,所以先搜索到的位置肯定需要的步数要小与等于以后的步数,然后定义结构体,包括这个...

2018-08-05 09:39:59 184

原创 三、搜索和二分 [Cloned] Q - 搜索

原题:在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。题意:中文题题意就很明显了题解:类似于八皇后问题,按照行来放,所以行不会冲突,要处理的就是列的冲突问题,不断找深搜能够放下一个棋子的列,直到找完所有的棋子或者找不到任何一个合...

2018-08-05 09:39:50 143

原创 三、搜索和二分 [Cloned] P - 上一个题的加强版

原题:A friend of you is doing research on the Traveling Knight Problem (TKP) where you are to find the shortest closed tour of knight moves that visits each square of a given set of n squares on a che...

2018-08-05 09:39:43 187

原创 三、搜索和二分 [Cloned] O - 搜索

原题:Background The knight is getting bored of seeing the same black and white squares again and again and has decided to make a journey around the world. Whenever a knight moves, it is two squares ...

2018-08-05 09:39:36 140

原创 三、搜索和二分 [Cloned] M - 搜索

原题:On Planet MM-21, after their Olympic games this year, curling is getting popular. But the rules are somewhat different from ours. The game is played on an ice game board on which a square mesh is...

2018-08-05 09:39:29 113

原创 三、搜索和二分 [Cloned] L - 搜索

原题:The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates a grid that divid...

2018-08-05 09:39:20 109

原创 三、搜索和二分 [Cloned] K - 搜索

原题:Technicians in a pathology lab analyze digitized images of slides. Objects on a slide are selected for analysis by a mouse click on the object. The perimeter of the boundary of an object is one u...

2018-08-05 09:39:11 140

原创 三、搜索和二分 [Cloned] I - 素数环 搜索

原题:A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacent circles should be a prime. Note: the numbe...

2018-08-05 09:39:03 116

原创 三、搜索和二分 [Cloned] F - 二分

原题:My birthday is coming up and traditionally I'm serving pie. Not just one pie, no, I have a number N of them, of various tastes and of various sizes. F of my friends are coming to my party and e...

2018-08-05 09:38:50 133

原创 三、搜索和二分 [Cloned] E - 二分

原题:It is very hard to wash and especially to dry clothes in winter. But Jane is a very smart girl. She is not afraid of this boring process. Jane has decided to use a radiator to make drying faster....

2018-08-04 19:18:04 125

原创 三、搜索和二分 [Cloned] D - 贪心

原题:Given m sequences, each contains n non-negative integer. Now we may select one number from each sequence to form a sequence with m integers. It's clear that we may get n ^ m this kind of sequence...

2018-08-04 19:05:07 164

原创 三、搜索和二分 [Cloned] C - map

原题:You have just moved from Waterloo to a big city. The people here speak an incomprehensible dialect of a foreign language. Fortunately, you have a dictionary to help you understand them.题意:到达一...

2018-08-04 18:55:50 175

原创 三、搜索和二分 [Cloned] B - 优先队列

原题:A data stream is a real-time, continuous, ordered sequence of items. Some examples include sensor data, Internet traffic, financial tickers, on-line auctions, and transaction logs such as Web usa...

2018-08-04 18:50:31 122

原创 三、搜索和二分 [Cloned] A - 贪心

原题:Oh those picky N (1 <= N <= 50,000) cows! They are so picky that each one will only be milked over some precise time interval A..B (1 <= A <= B <= 1,000,000), which includes both t...

2018-08-04 18:43:09 116

原创 二、stl ,模拟,贪心等 [Cloned] Z - Bitset

原题:Give you a number on base ten,you should output it on base two.(0 < n < 1000)题意:给一个十进制数转化为二进制数题解:这一节最后一个竟然是个水题,十进制转化二进制就是不断除以二求余。代码:AC#include<iostream>#include<cmath&g...

2018-08-04 18:32:45 239

原创 二、stl ,模拟,贪心等 [Cloned] Y - 栈

原题:How can anagrams result from sequences of stack operations? There are two sequences of stack operators which can convert TROT to TORT: [ i i i i o o o o i o i i o o i o ] where i stands for ...

2018-08-04 18:30:11 121

原创 二、stl ,模拟,贪心等 [Cloned] X - 栈

原题:As the new term comes, the Ignatius Train Station is very busy nowadays. A lot of student want to get back to school by train(because the trains in the Ignatius Train Station is the fastest all o...

2018-08-04 18:09:37 121

原创 二、stl ,模拟,贪心等 [Cloned] W - stl 的 优先队列

原题:Because of the wrong status of the bicycle, Sempr begin to walk east to west every morning and walk back every evening. Walking may cause a little tired, so Sempr always play some games this time...

2018-08-04 18:04:29 164

原创 二、stl ,模拟,贪心等 [Cloned] U - 贪心

原题:A set of n 1-dimensional items have to be packed in identical bins. All bins have exactly the same length l and each item i has length li<=l . We look for a minimal number of bins q such that ...

2018-08-04 17:54:22 123

原创 二、stl ,模拟,贪心等 [Cloned] T - 贪心

原题:The cows have purchased a yogurt factory that makes world-famous Yucky Yogurt. Over the next N (1 <= N <= 10,000) weeks, the price of milk and labor will fluctuate weekly such that it will ...

2018-08-03 23:34:50 134

原创 二、stl ,模拟,贪心等 [Cloned] S - 贪心

原题:A supermarket has a set Prod of products on sale. It earns a profit px for each product x∈Prod sold by a deadline dx that is measured as an integral number of time units starting from the moment ...

2018-08-03 23:27:14 128

原创 二、stl ,模拟,贪心等 [Cloned] R - 贪心

原题:Today the company has m tasks to complete. The ith task need xi minutes to complete. Meanwhile, this task has a difficulty level yi. The machine whose level below this task’s level yi cannot comp...

2018-08-03 23:23:30 182

原创 二、stl ,模拟,贪心等 [Cloned] Q - 贪心

原题:When playing DotA with god-like rivals and pig-like team members, you have to face an embarrassing situation: All your teammates are killed, and you have to fight 1vN. There are two key attribut...

2018-08-03 23:17:25 188

原创 二、stl ,模拟,贪心等 [Cloned] P - 贪心

原题:Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of handing in the homework. If Ignatius hands in the homework aft...

2018-08-03 23:09:54 115

原创 二、stl ,模拟,贪心等 [Cloned] N - A + B Again

原题:There must be many A + B problems in our HDOJ , now a new one is coming. Give you two hexadecimal integers , your task is to calculate the sum of them,and print it in hexadecimal too. Easy ? AC...

2018-08-03 23:03:51 85

原创 二、stl ,模拟,贪心等 [Cloned]

原题:As we all know the Train Problem I, the boss of the Ignatius Train Station want to know if all the trains come in strict-increasing order, how many orders that all the trains can get out of the r...

2018-08-03 22:58:34 119

原创 二、stl ,模拟,贪心等 [Cloned] K - Big Number

原题:In many applications very large integers numbers are required. Some of these applications are using keys for secure transmission of data, encryption, etc. In this problem you are given a number, ...

2018-08-03 22:50:05 102

原创 二、stl ,模拟,贪心等 [Cloned] J - 归并排序求逆序对

原题:One measure of ``unsortedness'' in a sequence is the number of pairs of entries that are out of order with respect to each other. For instance, in the letter sequence ``DAABEC'', this measure is ...

2018-08-03 22:42:46 157

原创 二、stl ,模拟,贪心等 [Cloned] I - Safecracker

原题:=== Op tech briefing, 2002/11/02 06:42 CST === "The item is locked in a Klein safe behind a painting in the second-floor library. Klein safes are extremely rare; most of them, along with Klein a...

2018-08-03 22:31:59 106

原创 二、stl ,模拟,贪心等 [Cloned] D - stl 的 map

原题:Once again, James Bond is fleeing from some evil people who want to see him dead. Fortunately, he has left a bungee rope on a nearby highway bridge which he can use to escape from his enemies. Hi...

2018-08-02 23:21:55 129

原创 二、stl ,模拟,贪心等 [Cloned] G - stl 的 优先队列

原题:In a speech contest, when a contestant finishes his speech, the judges will then grade his performance. The staff remove the highest grade and the lowest grade and compute the average of the rest...

2018-08-02 23:15:13 105

原创 二、stl ,模拟,贪心等 [Cloned] F - 递推

原题:我们看到过很多直线分割平面的题目,今天的这个题目稍微有些变化,我们要求的是n条折线分割平面的最大数目。比如,一条折线可以将平面分成两部分,两条折线最多可以将平面分成7部分,具体如下所示。 题意:一条折线可以将平面分成两部分,两条折线可以分成七部分,问n条折线可以分成几部分题解:显然这是递推的问题,当添加第n条折线的时候,已经有n-1条折线存在,添加最多产生4*(n-1)个交点...

2018-08-02 23:01:37 93

原创 二、stl ,模拟,贪心等 [Cloned] E - 贪心

原题:FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean. The warehouse has N rooms. The i-th room contains J[i] pounds ...

2018-08-02 22:55:19 118

原创 二、stl ,模拟,贪心等 [Cloned] C - stl 的 map

原题:夏天来了~~好开心啊,呵呵,好多好多水果~~ Joe经营着一个不大的水果店.他认为生存之道就是经营最受顾客欢迎的水果.现在他想要一份水果销售情况的明细表,这样Joe就可以很容易掌握所有水果的销售情况了. 题意:给出几组数据,包括水果的名称、产地、销售数量,对这些数据进行统计,统计分类包括如下几层,首先是相同产地的各类水果,分别列出,然后相同产地的相同水果的销售数量要加和在一起。...

2018-08-02 22:49:22 109

原创 二、stl ,模拟,贪心等 [Cloned] B - stl 的 map

原题:Ignatius is so lucky that he met a Martian yesterday. But he didn't know the language the Martians use. The Martian gives him a history book of Mars and a dictionary when it leaves. Now Ignatius ...

2018-08-02 22:42:17 142

原创 二、stl ,模拟,贪心等 [Cloned] A - stl 的 map

原题:Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is guessing the most popular problem. When the contest is over, they wil...

2018-08-02 22:37:06 120

原创 一、热身 [Cloned] Z - A + B Problem II

原题:I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B. 题意:输入两个大数求和。题解:就是大数加和的问题,用字符串储存,然后相当于竖式加法,注意进位和输出格式的问题就ok了代码:AC#include&l...

2018-08-02 22:32:43 114

原创 一、热身 [Cloned] Y - A == B ?

原题:Give you two numbers A and B, if A is equal to B, you should print "YES", or print "NO".题意:给出两个数,比较这两个数是否相等题解:开始真没搞明白到底啥意思......其实就是要把小数点之后的多余的零去掉然后比较一下两个字符串是否相等,如果有小数点就先找到小数点的位置,然后将数字最后的多余...

2018-08-02 22:30:28 100

空空如也

空空如也

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

TA关注的人

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