![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
思维
文章平均质量分 75
楚江枫
不忘初心,方得始终
展开
-
【Codeforces B. Balanced Substring】
B. Balanced Substring time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output You are given a string s consisting only of characters 0 and 1. A sub原创 2017-10-12 23:19:01 · 1263 阅读 · 0 评论 -
【Codeforces 756 D. Artsem and Saunders】+ 思维 + 构造
D. Artsem and Saunders time limit per test 2 seconds memory limit per test 512 megabytes input standard input output standard outputArtsem has a friend Saunders from University of Chicago. Saun原创 2017-02-15 17:40:33 · 643 阅读 · 1 评论 -
【HDU 6012 Lotus and Horticulture】+ 思维 + map
Lotus and Horticulture Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 313 Accepted Submission(s): 96Problem Description These days Lotu原创 2017-01-22 14:27:25 · 729 阅读 · 0 评论 -
【HDU 6011 Lotus and Characters】
D. Ability To Convert time limit per test 1 second memory limit per test 256 megabytes input standard input output standard outputAlexander is learning how to convert numbers from the decimal s原创 2017-01-21 22:51:25 · 730 阅读 · 0 评论 -
【Codeforces 758 D Ability To Convert】
D. Ability To Convert time limit per test 1 second memory limit per test 256 megabytes input standard input output standard outputAlexander is learning how to convert numbers from the decimal s原创 2017-01-21 15:30:44 · 410 阅读 · 0 评论 -
【Codefoces 722 D Generating Sets】+ 贪心 + map
D. Generating Sets time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard outputYou are given a set Y of n distinct positive integers y1, y2, …,原创 2017-02-10 16:43:46 · 376 阅读 · 0 评论 -
【zzuli 1923 表达式求值】+ 字符串 + 栈
1923: 表达式求值Time Limit: 1 Sec Memory Limit: 128 MB Submit: 20 Solved: 5SubmitStatusWeb Board Description假设表达式定义为: 1. 一个十进制的正整数 X 是一个表达式。 2. 如果 X 和 Y 是 表达式,则 X+Y, X*Y 也是表达式; *优先级高于+. 3. 如果 X 和 Y 是原创 2017-02-28 18:08:27 · 528 阅读 · 0 评论 -
【Codeforces 722 C Destroying Array】+ 并查集
C. Destroying Array time limit per test 1 second memory limit per test 256 megabytes input standard input output standard outputYou are given an array consisting of n non-negative integers a1,原创 2017-02-10 16:05:57 · 408 阅读 · 0 评论 -
【Codeforces 752 C New Year and Rating】+ 思维
C. New Year and Rating time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard outputEvery Codeforces user has rating, described with one integer,原创 2017-01-01 15:00:36 · 792 阅读 · 0 评论 -
【Codeforces 757 C Felicity is Coming! 】+ 思维
C. Felicity is Coming! time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard outputIt’s that time of the year, Felicity is around the corner and原创 2017-01-15 16:29:47 · 835 阅读 · 0 评论 -
【Codeforces 735 D Taxes】 + 规律
D. Taxes time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard outputMr. Funt now lives in a country with a very specific tax laws. The total in原创 2017-02-05 20:05:33 · 428 阅读 · 0 评论 -
【Codeforces 735 C Tennis Championship】+ 贪心
C. Tennis Championship time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard outputFamous Brazil city Rio de Janeiro holds a tennis tournament a原创 2017-02-05 19:54:21 · 328 阅读 · 0 评论 -
【Codeforces 731 F Video Cards】
F. Video Cards time limit per test 1 second memory limit per test 256 megabytes input standard input output standard outputLittle Vlad is fond of popular computer game Bota-2. Recently, the dev原创 2017-02-05 19:29:44 · 364 阅读 · 0 评论 -
【Codeforces 733 C. Epidemic in Monstropolis】+ 模拟
C. Epidemic in Monstropolis time limit per test 1 second memory limit per test 256 megabytes input standard input output standard outputThere was an epidemic in Monstropolis and all monsters be原创 2017-02-04 17:29:48 · 349 阅读 · 0 评论 -
【Codeforces 761 D Dasha and Very Difficult Problem】
D. Dasha and Very Difficult Problem time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard outputDasha logged into the system and began to solve原创 2017-02-04 15:37:27 · 449 阅读 · 0 评论 -
【HDU 6016 Count the Sheep】
Count the Sheep Time Limit: 3000/1500 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 112 Accepted Submission(s): 45Problem Description Altough Skipping the cla原创 2017-02-25 22:05:31 · 871 阅读 · 0 评论 -
【玲珑OJ 1097 B -- 萌萌哒的第二题】+ 最长上升子序列
B – 萌萌哒的第二题 Time Limit:5s Memory Limit:128MByte Submissions:219Solved:74DESCRIPTION一条东西走向的河两边有都排着工厂,北边有n间工厂A提供原材料,南边有n间工厂B进行生产。现在需要在工厂A和工厂B之间建运输桥以减少运输成本。可是每个工厂B只能接受最多6个工厂A提供的材料能满足生产,而且建立的运输桥之间不能有交叉,北边的原创 2017-03-04 18:15:17 · 549 阅读 · 0 评论 -
【HPU 1047 QAQ的纸币问题(一)】+ 思维
1047: QAQ的纸币问题(一) 时间限制: 1 Sec 内存限制: 128 MB 提交: 17 解决: 3 [提交][状态][讨论版] 题目描述 现在有三种面值分别为1、2、3 的纸币,数目分别为a1、a2、a3 。 我想知道利用这些纸币,可以直接支付多少个不同的价格且不用找零。 输入 第一行输入一个整数T ,代表有T组测试数据。每组数据输入三个整数a1、a2、a3,分原创 2016-11-05 22:14:12 · 408 阅读 · 0 评论 -
【Codeforces 869 C The Intriguing Obsession】& 组合数学 & 思维
C. The Intriguing Obsession time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output — This is not playing but duty as allies of justice, Nii-chan!—原创 2017-10-11 12:22:23 · 479 阅读 · 0 评论 -
【Gym - 101350A. Sherlock Bones】 & 思维
A. Sherlock Bones time limit per test1.5 s memory limit per test256 MB inputstandard input outputstandard output The great dog detective Sherlock Bones is on the verge of a new discovery. But for原创 2017-08-23 17:37:22 · 643 阅读 · 0 评论 -
【HDU 6048 Puzzle】 逆序对 & 思维
PuzzleTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 446 Accepted Submission(s): 242Problem Description A Jigsaw puzzle contains N*M-1 p原创 2017-08-05 11:00:31 · 431 阅读 · 0 评论 -
【LightOJ 1104 Birthday Paradox】
Sometimes some mathematical results are hard to believe. One of the common problems is the birthday paradox. Suppose you are in a party where there are 23 people including you. What is the probability原创 2016-08-13 17:33:17 · 404 阅读 · 0 评论 -
【HDU 6069 Counting Divisors】 + 素数筛 & 思维
Counting DivisorsTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 524288/524288 K (Java/Others) Total Submission(s): 1372 Accepted Submission(s): 494Problem Description In mathematics, the原创 2017-08-04 10:12:44 · 393 阅读 · 0 评论 -
【Codeforces 835 D. Palindromic characteristics】& 思维
D. Palindromic characteristics time limit per test3 seconds memory limit per test256 megabytes inputstandard input outputstandard output Palindromic characteristics of string s with length |s| is原创 2017-08-11 10:07:22 · 395 阅读 · 0 评论 -
【HDU 6038 Problem Description】+ 思维
FunctionTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others) Total Submission(s): 365 Accepted Submission(s): 142Problem Description You are given a permutation a原创 2017-07-25 21:57:25 · 606 阅读 · 0 评论 -
【HDU 6040 Hints of sd0061】 思维 & STL
Hints of sd0061Time Limit: 5000/2500 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others) Total Submission(s): 2379 Accepted Submission(s): 721Problem Description sd0061, the legend of原创 2017-08-03 12:01:20 · 355 阅读 · 0 评论 -
【HDU 6092 Rikka with Subset】 思维 & 背包
Rikka with SubsetTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 846 Accepted Submission(s): 418Problem Description As we know, Rikka is po原创 2017-08-09 09:46:33 · 280 阅读 · 0 评论 -
【HDU 6035 Colorful Tree】+ 树形 dp + 思维
Colorful TreeTime Limit: 6000/3000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others) Total Submission(s): 2124 Accepted Submission(s): 908Problem Description There is a tree with n n原创 2017-08-02 21:53:06 · 373 阅读 · 0 评论 -
【51nod 区间的价值 】+ 思维
区间的价值 System Message (命题人) 基准时间限制:1 秒 空间限制:131072 KB 分值: 160 我们定义“区间的价值”为一段区间的最大值*最小值。 一个区间左端点在L,右端点在R,那么该区间的长度为(R-L+1)。 现在聪明的杰西想要知道,对于长度为k的区间,最大价值的区间价值是多少。 当然,由于这个问题过于简单。 我们肯定得加强一下。 我们想要知道的是,对原创 2017-07-23 12:06:31 · 382 阅读 · 0 评论 -
【Codeforces 822 C. Hacker, pack your bags!】+ pair
C. Hacker, pack your bags! time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output It’s well known that the best way to distract from something is原创 2017-07-18 17:35:27 · 1564 阅读 · 0 评论 -
【Codeforces 809 A. Do you want a date?】
A. Do you want a date? time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Leha decided to move to a quiet town Vičkopolis, because he was tir原创 2017-05-22 12:27:12 · 946 阅读 · 0 评论 -
【Codeforces 807 B. T-Shirt Hunt】
B. T-Shirt Hunt time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Not so long ago the Codecraft-17 contest was held on Codeforces. The top 2原创 2017-05-21 18:26:39 · 342 阅读 · 0 评论 -
【Codeforces 803 C. Maximal GCD】
C. Maximal GCD time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output You are given positive integer number n. You should create such strictly inc原创 2017-05-23 17:52:26 · 801 阅读 · 0 评论 -
【HDU 5666 Segment】+ 俄罗斯乘法
SegmentTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 1771 Accepted Submission(s): 655Problem Description Silen August does not like t原创 2017-03-10 22:14:56 · 477 阅读 · 0 评论 -
【Codeforces 747 C Servers 】+ 思维 或 优先队列
C. Servers time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard outputThere are n servers in a laboratory, each of them can perform tasks. Each原创 2016-12-28 23:48:48 · 675 阅读 · 0 评论 -
【Codeforces 652 C Foe Pairs 】
C. Foe Pairs time limit per test 1 second memory limit per test 256 megabytes input standard input output standard outputYou are given a permutation p of length n. Also you are given m foe pair原创 2016-12-27 13:10:41 · 570 阅读 · 0 评论 -
【HDU 1214 圆桌会议】+ 思维
圆桌会议 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 4632 Accepted Submission(s): 3247Problem Description HDU ACM集训队的队员在暑假集训时经常要讨论自己在做题中遇到原创 2016-11-08 22:50:58 · 371 阅读 · 0 评论 -
【codeforces 723C】 + 思维
C. Polycarp at the Radio time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Polycarp is a music editor at the radio station. He received a pl原创 2016-10-04 00:09:04 · 846 阅读 · 0 评论 -
【HPU 1046 QAQ的数学问题】+ 思维
1046: QAQ的数学问题 时间限制: 1 Sec 内存限制: 128 MB 提交: 59 解决: 10 [提交][状态][讨论版] 题目描述 QAQ很喜欢数学,尤其对LCM (最小公倍数)很感兴趣。 对于数对(6,10),可以得出LCM(6,10)=30。为了让LCM的值最小化,他尝试把6和10全部加上2,这样得到LCM(8,12)=24<30。 经过无数次的尝试,QAQ发现原创 2016-11-05 22:16:57 · 327 阅读 · 0 评论 -
【HPU 1048 QAQ的纸币问题(二)】+ 思维
1048: QAQ的纸币问题(二) 时间限制: 1 Sec 内存限制: 128 MB 提交: 17 解决: 6 [提交][状态][讨论版] 题目描述 这天无聊的QAQ又在研究纸币的组合问题,QAQ发现只需要1、2、7 三种面值就可以通过加法和减法组成1−10的所有数字。如: 1=1 2=2 3=1+2 4=7−1−2 5=7−2 6=7−1 7=7 8=1+7 9=原创 2016-11-05 22:10:58 · 455 阅读 · 0 评论