贪心
文章平均质量分 95
哇-WA
这个作者很懒,什么都没留下…
展开
-
历届试题 对局匹配 【贪心】
历届试题 对局匹配 时间限制:1.0s 内存限制:256.0MB问题描述 小明喜欢在一个围棋网站上找别人在线对弈。这个网站上所有注册用户都有一个积分,代表他的围棋水平。 小明发现网站的自动对局系统在匹配对手时,只会将积分差恰好是K的两名用户匹配在一起。如果两人分差小于或大于K,系统都不会将他们匹配。 现在小明知道这个网站总共有N名用户,以及他们的积分分别...原创 2018-10-25 19:33:43 · 1863 阅读 · 9 评论 -
2018中国大学生程序设计竞赛 - 网络选拔赛 Tree and Permutation
Tree and PermutationTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 69 Accepted Submission(s): 26 Problem DescriptionThere are N vert...原创 2018-08-25 18:31:27 · 317 阅读 · 0 评论 -
Codeforces Round #506 (Div. 3) C. Maximal Intersection
C. Maximal Intersectiontime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given nn segments on a number line; each endpoint...原创 2018-08-26 16:35:17 · 177 阅读 · 0 评论 -
Codeforces Round #486 (Div. 3) E. Divisibility by 25【贪心】
E. Divisibility by 25time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an integer nn from 11 to 10181018 without leading zeroes.In one ...原创 2018-06-03 19:42:22 · 307 阅读 · 0 评论 -
Codeforces Round #486 (Div. 3) D. Points and Powers of Two【贪心】
D. Points and Powers of Twotime limit per test4 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are nn distinct points on a coordinate line, the coordinate of ii...原创 2018-06-03 19:26:51 · 219 阅读 · 0 评论 -
Codeforces Round #481 (Div. 3) G. Petya's Exams【贪心】
G. Petya's Examstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPetya studies at university. The current academic year finishes with nn special day...原创 2018-05-14 21:27:19 · 2523 阅读 · 0 评论 -
FZU - 2267 The Bigger the Better
Problem 2267 The Bigger the BetterAccept: 118 Submit: 802Time Limit: 1500 mSec Memory Limit : 32768 KB Problem DescriptionFat brother and Maze are playing a kind of special (hentai) game with t...原创 2018-04-25 19:59:28 · 229 阅读 · 0 评论 -
C. Swap Adjacent Elements
You have an array a consisting of n integers. Each integer from 1 to n appears exactly once in this array.For some indices i (1 ≤ i ≤ n - 1) it is possible to swap i-th element with (i + 1)-原创 2018-02-03 15:04:07 · 825 阅读 · 0 评论 -
51Nod - 1621 花钱买车牌
1621 花钱买车牌题目来源: CodeForces基准时间限制:1 秒 空间限制:131072 KB 分值: 20 难度:3级算法题一个车牌号由n位数字组成。如果一个车牌至少有k位数字是相同的,那么我们就说这个车牌漂亮的车牌。现在华沙想要改变他自己的车牌,使得他的车牌变得漂亮。当然,改车牌是要花钱的。每改变一位数字所要花费的费用等于当前位上的新旧数原创 2017-12-11 12:35:08 · 385 阅读 · 0 评论 -
HDU - 1789 Doing Homework again
Doing Homework againTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 14230 Accepted Submission(s): 8269Problem DescriptionIgna原创 2017-07-12 09:23:07 · 399 阅读 · 0 评论 -
POJ - 1716 Integer Intervals
Integer IntervalsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 14913 Accepted: 6310DescriptionAn integer interval [a,b], a Write a program that: fin原创 2017-07-14 10:10:22 · 5519 阅读 · 0 评论 -
POJ - 1323 Game Prediction
Game PredictionTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 11071 Accepted: 5338DescriptionSuppose there are M people, including you, playing a speci原创 2017-07-12 08:12:33 · 301 阅读 · 0 评论