
模拟与贪心
文章平均质量分 76
algzjh
这个作者很懒,什么都没留下…
展开
-
2018 “百度之星”程序设计大赛 - 初赛(A)
1001度度熊拼三角#include<iostream>#include<cstdio>#include<cmath>#include<cstdlib>#include<cstring>#include<vector>#incl原创 2018-08-11 22:07:34 · 425 阅读 · 0 评论 -
AtCoder Regular Contest 080-D - Grid Coloring
D - Grid Coloring Time limit : 2sec / Memory limit : 256MBScore : 400 pointsProblem Statement We have a grid with H rows and W columns of squares. Snuke is painting these squares in colors 1, 2, …, N原创 2017-08-07 11:00:50 · 1112 阅读 · 0 评论 -
2017计蒜之道初赛第六场-微软手机的信号显示
微软近日推出了一款功能极简的手机,在手机上用一个包含了 7 \times 77×7 个像素的区域来显示手机信号。满信号的时候显示如下:1+-----+2|- 4G|3|-- |4|--- |5|---- |6|-----|7+-----+每一格信号(第 i(1 \le i \le 5)i(1≤i≤5) 格信号有 ii 个-)代表 20\%20% 的信号强度,不足一格信号的部原创 2017-06-07 15:14:50 · 418 阅读 · 0 评论 -
2016CCPC东北地区大学生程序设计竞赛-Mr. Frog’s Game
Mr. Frog’s GameTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 0 Accepted Submission(s): 0Problem DescriptionOne day, Mr. F原创 2016-10-06 15:22:28 · 1430 阅读 · 0 评论 -
2017"百度之星"程序设计大赛 - 初赛-度度熊的01世界
度度熊的01世界Accepts: 967 Submissions: 3064 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem Description度度熊是一个喜欢计算机的孩子,在计算机的世界中,所有事物实际上都只由0和1组成。现在给你一个n*m的图像,你需要分辨原创 2017-08-13 01:02:48 · 398 阅读 · 0 评论 -
HDU6034-Balala Power!
Balala Power!Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others) Total Submission(s): 4263 Accepted Submission(s): 1059Problem Description Talented Mr.Tang has n原创 2017-07-27 09:05:53 · 526 阅读 · 0 评论 -
HDU6077-Time To Get Up
Time To Get UpTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 524288/524288 K (Java/Others) Total Submission(s): 117 Accepted Submission(s): 101Problem Description Little Q’s clock is alar原创 2017-08-03 19:16:35 · 894 阅读 · 0 评论 -
HDU6047-Maximum Sequence
Maximum SequenceTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1753 Accepted Submission(s): 815Problem Description Steph is extremely obse原创 2017-08-01 10:54:03 · 385 阅读 · 0 评论 -
CF835B-The number on the board
B. The number on the boardtime limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Some natural number was written on the board. Its sum of digits w原创 2017-08-01 09:31:22 · 484 阅读 · 0 评论 -
AtCoder Regular Contest 079-E - Decrease (Judge ver.)
E - Decrease (Judge ver.)Time limit : 2sec / Memory limit : 256MBScore : 600 pointsProblem Statement We have a sequence of length N consisting of non-negative integers. Consider performing the followi原创 2017-07-30 10:55:28 · 543 阅读 · 0 评论 -
COJ1971-安排座位
安排座位Submit Page Summary Time Limit: 2 Sec Memory Limit: 128 Mb Submitted: 114 Solved: 83 Description 一年一度的暑期集训又开始了! 作为老人的小明非常忧伤,因为他要给所有的新人安排座位。由于安排给新人的座位上的机器可能有各种毛病(比如很卡,上不了网之类的),原创 2017-07-29 18:50:41 · 640 阅读 · 0 评论 -
CF820A-Mister B and Book Reading
A. Mister B and Book Readingtime limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Mister B once received a gift: it was a book about aliens, whic原创 2017-06-28 03:53:37 · 871 阅读 · 0 评论 -
CodeForces 1B
B. Spreadsheetstime limit per test10 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard outputIn the popular spreadsheets systems (for example, in原创 2016-07-22 20:33:09 · 403 阅读 · 0 评论 -
CodeForces 616A
A. Comparing Two Long Integerstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given two very long integers原创 2016-08-21 17:04:48 · 352 阅读 · 0 评论 -
POJ1035
Spell checkerTime Limit: 2000MSMemory Limit: 65536KTotal Submissions: 24571Accepted: 8984DescriptionYou, as a member of a development team for a new spell check原创 2016-08-21 16:42:06 · 391 阅读 · 0 评论 -
ABC084-C-Special Trains
传送门:Special Trains 知识点:模拟,模,读题#includeusing namespace std;const int MAXN=505;int C[MAXN],S[MAXN],F[MAXN];int main(){ int n; while(scanf("%d",&n)!=EOF) { for(int i=0;i1;i++原创 2018-01-12 13:15:45 · 477 阅读 · 0 评论 -
ABC085-D-Katana Thrower
传送门:Katana Thrower知识点:STL、贪心#include #include #include #include #include #include #include #include #include using namespace std;typedef long long LL;const int MAXN=1e5+5;const int INF原创 2018-01-12 13:10:04 · 464 阅读 · 0 评论 -
HDU6168-Numbers
NumbersTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others) Total Submission(s): 439 Accepted Submission(s): 227Problem Description zk has n numbers a1,a2,…,an. Fo原创 2017-08-23 09:14:50 · 459 阅读 · 0 评论 -
HDU6178-Monkeys
MonkeysTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 153428/153428 K (Java/Others) Total Submission(s): 729 Accepted Submission(s): 234Problem Description There is a tree having N vertic原创 2017-08-25 17:15:28 · 528 阅读 · 0 评论 -
AtCoder Regular Contest 082-F-Sandglass
F - SandglassTime limit : 2sec / Memory limit : 256MBScore : 700 pointsProblem Statement We have a sandglass consisting of two bulbs, bulb A and bulb B. These bulbs contain some amount of sand. When w转载 2017-09-04 10:22:39 · 1048 阅读 · 0 评论 -
HDU6180-Schedule
ScheduleTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 153428/153428 K (Java/Others) Total Submission(s): 572 Accepted Submission(s): 219Problem Description There are N schedules, the i-t原创 2017-08-25 13:38:07 · 400 阅读 · 0 评论 -
中南大学2016年校队选拔赛第二场Problem F
Problem F: 小z的远古讯息Time Limit: 10 Sec Memory Limit:128 MBSubmit: 147 Solved:32[Submit][Status][Ask]Description最新消息!长江中游地区发现人类(地球土著已灭绝)在原子时代留下的奇怪图像,根据现有研究留下奇怪图像的作者名叫小Z,这次发现将对地球土著的研究影响巨原创 2016-08-24 19:47:19 · 921 阅读 · 0 评论 -
中南大学2016年校队选拔赛第一场Problem E
Problem E: 小Y的彩色立方体Time Limit: 1 Sec Memory Limit:128 MBSubmit: 115 Solved: 18[Submit][Status][Ask]Description小Y十分喜欢给立方体染色,他有许多的立方体,他也有许多颜色的染料。他喜欢把立方体染成各种颜色。由于对于对称性的偏执的追求,他会把立方体的相对原创 2016-08-23 18:12:57 · 903 阅读 · 0 评论 -
CodeForces 685A
A. Robbers' watchtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputRobbers, who attacked the Gerda's cab, are very suc原创 2016-08-22 14:20:24 · 322 阅读 · 0 评论 -
CodeForces 681C
C. Heap Operationstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPetya has recently learned data structure named "Bi原创 2016-08-22 10:27:05 · 376 阅读 · 0 评论 -
CodeForces 589F
F. Gourmet and Banquettime limit per test2 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputA gourmet came into the banquet hall, where th原创 2016-08-21 15:53:16 · 383 阅读 · 0 评论 -
2017计蒜之道复赛-Windows 画图
在 Windows 的“画图”工具里,可以绘制各种各样的图案。可以把画图当做一个标准的二维平面,在其上先后绘制了 nn 条颜色互不相同的线段。按绘制的时间顺序,从先到后把线段依次编号为 11 到 nn。第 ii 条线段的两个端点分别为 (xa_i,ya_i)(xai,yai) 和 (xb_i,yb_i)(xbi,ybi),线段的粗细忽略不计。后绘制的线段不会改变之前原创 2017-06-10 18:25:12 · 601 阅读 · 0 评论 -
CF818B-Permutation Game
B. Permutation Gametime limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output n children are standing in a circle and playing a game. Children’s number原创 2017-06-30 02:03:59 · 1126 阅读 · 0 评论 -
Codeforces789B-Masha and geometric depression
B. Masha and geometric depression time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Masha really loves algebra. On the last lesson, her stric原创 2017-03-30 21:17:04 · 557 阅读 · 0 评论 -
2017湖南多校第四场-H(1042): Crash and Go(relians)
Problem H: Crash and Go(relians) Source file: crash.{c, cpp, java} Input file: crash.in The Gorelians are a warlike race that travel the universe conquering new worlds as a form of recreation. Gener原创 2017-03-29 16:52:37 · 485 阅读 · 0 评论 -
2017湖南多校第四场-C(1037): Pizza Pricing
Problem C: Pizza Pricing Source file: pizza.{c, cpp, java} Input file: pizza.in Pizza has always been a staple on college campuses. After the downturn in the economy, it is more important than ever原创 2017-03-29 16:42:31 · 552 阅读 · 0 评论 -
codeforces 725F
F. Family Photostime limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Alice and Bonnie are sisters, but they don’t like each other very much. So转载 2017-02-18 23:39:15 · 402 阅读 · 0 评论 -
POJ3190
Stall ReservationsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 5822 Accepted: 2130 Special JudgeDescriptionOh those picky N (1 <= N <= 50,000) co原创 2016-11-13 11:26:05 · 402 阅读 · 0 评论 -
HDU1789
Doing Homework againTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 11754 Accepted Submission(s): 6915Problem DescriptionIgnati原创 2016-08-22 14:03:14 · 360 阅读 · 0 评论 -
HDU4296
BuildingsTime Limit: 5000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3721 Accepted Submission(s): 1393Problem Description Have you ever he原创 2016-08-22 13:55:30 · 365 阅读 · 0 评论 -
HDU4864
D -TaskCrawling in process...Crawling failedTime Limit:2000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmitStatus Practice HDU 4864 uDebugDescript原创 2016-08-22 13:43:29 · 1044 阅读 · 1 评论 -
CodeForces 681B
B. Economy Gametime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputKolya is developing an economy simulator game. His mos原创 2016-08-22 13:36:56 · 350 阅读 · 0 评论 -
CodeForces 691C
C. Exponential notationtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a positive decimal number x.原创 2016-08-22 13:32:53 · 572 阅读 · 0 评论 -
CodeForces 697B
B. Barnicletime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputBarney is standing in a bar and starring at a pretty girl.原创 2016-08-22 13:29:55 · 500 阅读 · 0 评论 -
2017湖南多校第五场-E(1047): The Same Game
E(1047): The Same Game Submit Page Summary Time Limit: 1 Sec Memory Limit: 128 Mb Submitted: 35 Solved: 7 Description The game named “Same” is a single-person game played on原创 2017-04-03 13:37:35 · 535 阅读 · 0 评论