模拟与贪心
文章平均质量分 78
algzjh
这个作者很懒,什么都没留下…
展开
-
2018 “百度之星”程序设计大赛 - 初赛(A)
1001度度熊拼三角 #include<iostream> #include<cstdio> #include<cmath> #include<cstdlib> #include<cstring> #include<vector> #incl原创 2018-08-11 22:07:34 · 384 阅读 · 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 · 1070 阅读 · 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 · 395 阅读 · 0 评论 -
2016CCPC东北地区大学生程序设计竞赛-Mr. Frog’s Game
Mr. Frog’s Game Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 0 Accepted Submission(s): 0 Problem Description One day, Mr. F原创 2016-10-06 15:22:28 · 1382 阅读 · 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 · 365 阅读 · 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 · 490 阅读 · 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 · 863 阅读 · 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 · 359 阅读 · 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 · 453 阅读 · 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 · 508 阅读 · 0 评论 -
COJ1971-安排座位
安排座位Submit Page Summary Time Limit: 2 Sec Memory Limit: 128 Mb Submitted: 114 Solved: 83 Description 一年一度的暑期集训又开始了! 作为老人的小明非常忧伤,因为他要给所有的新人安排座位。由于安排给新人的座位上的机器可能有各种毛病(比如很卡,上不了网之类的),原创 2017-07-29 18:50:41 · 604 阅读 · 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 · 840 阅读 · 0 评论 -
CodeForces 1B
B. Spreadsheets time limit per test 10 seconds memory limit per test 64 megabytes input standard input output standard output In the popular spreadsheets systems (for example, in原创 2016-07-22 20:33:09 · 378 阅读 · 0 评论 -
CodeForces 616A
A. Comparing Two Long Integers time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given two very long integers原创 2016-08-21 17:04:48 · 325 阅读 · 0 评论 -
POJ1035
Spell checker Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 24571 Accepted: 8984 Description You, as a member of a development team for a new spell check原创 2016-08-21 16:42:06 · 366 阅读 · 0 评论 -
ABC084-C-Special Trains
传送门:Special Trains 知识点:模拟,模,读题 #include using 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 · 430 阅读 · 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 · 426 阅读 · 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 · 416 阅读 · 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 · 497 阅读 · 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 · 1005 阅读 · 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 · 365 阅读 · 0 评论 -
中南大学2016年校队选拔赛第二场Problem F
Problem F: 小z的远古讯息 Time Limit: 10 Sec Memory Limit: 128 MB Submit: 147 Solved: 32 [Submit][Status][Ask] Description 最新消息!长江中游地区发现人类(地球土著已灭绝)在原子时代留下的奇怪图像,根据现有研究留下奇怪图像的作者名叫小Z,这次发现将对地球土著的研究影响巨原创 2016-08-24 19:47:19 · 880 阅读 · 0 评论 -
中南大学2016年校队选拔赛第一场Problem E
Problem E: 小Y的彩色立方体 Time Limit: 1 Sec Memory Limit: 128 MB Submit: 115 Solved: 18 [Submit][Status][Ask] Description 小Y十分喜欢给立方体染色,他有许多的立方体,他也有许多颜色的染料。他喜欢把立方体染成各种颜色。 由于对于对称性的偏执的追求,他会把立方体的相对原创 2016-08-23 18:12:57 · 866 阅读 · 0 评论 -
CodeForces 685A
A. Robbers' watch time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Robbers, who attacked the Gerda's cab, are very suc原创 2016-08-22 14:20:24 · 284 阅读 · 0 评论 -
CodeForces 681C
C. Heap Operations time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Petya has recently learned data structure named "Bi原创 2016-08-22 10:27:05 · 330 阅读 · 0 评论 -
CodeForces 589F
F. Gourmet and Banquet time limit per test 2 seconds memory limit per test 512 megabytes input standard input output standard output A gourmet came into the banquet hall, where th原创 2016-08-21 15:53:16 · 346 阅读 · 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 · 570 阅读 · 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 · 1083 阅读 · 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 · 525 阅读 · 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 · 457 阅读 · 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 · 508 阅读 · 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 · 361 阅读 · 0 评论 -
POJ3190
Stall Reservations Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 5822 Accepted: 2130 Special Judge Description Oh those picky N (1 <= N <= 50,000) co原创 2016-11-13 11:26:05 · 362 阅读 · 0 评论 -
HDU1789
Doing Homework again Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 11754 Accepted Submission(s): 6915 Problem Description Ignati原创 2016-08-22 14:03:14 · 320 阅读 · 0 评论 -
HDU4296
Buildings Time Limit: 5000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3721 Accepted Submission(s): 1393 Problem Description Have you ever he原创 2016-08-22 13:55:30 · 341 阅读 · 0 评论 -
HDU4864
D - Task Crawling in process... Crawling failed Time Limit:2000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Practice HDU 4864 uDebug Descript原创 2016-08-22 13:43:29 · 940 阅读 · 1 评论 -
CodeForces 681B
B. Economy Game time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Kolya is developing an economy simulator game. His mos原创 2016-08-22 13:36:56 · 321 阅读 · 0 评论 -
CodeForces 691C
C. Exponential notation time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given a positive decimal number x.原创 2016-08-22 13:32:53 · 522 阅读 · 0 评论 -
CodeForces 697B
B. Barnicle time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Barney is standing in a bar and starring at a pretty girl.原创 2016-08-22 13:29:55 · 454 阅读 · 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 · 494 阅读 · 0 评论