![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ACM
文章平均质量分 76
黑糖22
这个作者很懒,什么都没留下…
展开
-
[CodeForces-337A] A. Puzzles【水题】
A. Puzzlestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe end of the school year is near and Ms. Manana, the teacher, will soon have to sa...原创 2019-02-03 04:44:48 · 217 阅读 · 0 评论 -
[HDU-2068] RPG的错排【错排公式】
RPG的错排Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 17479 Accepted Submission(s): 7020Problem Description今年暑假杭电ACM集训队第一次组成女生队,其中有一队叫RPG...原创 2019-01-29 11:53:46 · 132 阅读 · 0 评论 -
HDU - 2067小兔的棋盘【卡特兰数】
小兔的棋盘Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 13970 Accepted Submission(s): 6916Problem Description小兔的叔叔从外面旅游回来给她带来了一个礼物,小兔高兴地跑回自己...原创 2019-01-23 18:50:17 · 138 阅读 · 0 评论 -
POJ - 1797 Heavy Transportation【dijkstra】
Heavy TransportationTime Limit: 3000MS Memory Limit: 30000KTotal Submissions: 52657 Accepted: 13458DescriptionBackgroundHugo Heavy is happy. After the breakdown of the Cargolifter project he ca...原创 2019-02-01 13:24:23 · 125 阅读 · 0 评论 -
HDU - 2049不容易系列之(4)——考新郎【错排公式】
不容易系列之(4)——考新郎Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 50815 Accepted Submission(s): 18531Problem Description国庆期间,省城HZ刚刚举行了一场盛大的集体...原创 2019-01-23 19:06:05 · 193 阅读 · 0 评论 -
[UVA-11389] The Bus Driver Problem【贪心】
The Bus Driver ProblemIn a city there are n bus drivers. Also there are n morning bus routes and n afternoon bus routes withvarious lengths. Each driver is assigned one morning route and one evening...原创 2019-01-29 17:31:08 · 181 阅读 · 0 评论 -
HDU - 1495 非常可乐【数论\】
非常可乐Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 27959 Accepted Submission(s): 10843Problem Description大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou...原创 2019-03-03 09:29:53 · 160 阅读 · 0 评论 -
POJ - 3126 Prime Path【bfs】
Prime PathTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 30561 Accepted: 16589DescriptionThe ministers of the cabinet were quite upset by the message from the Chief of Security statin...原创 2019-01-25 22:34:54 · 113 阅读 · 0 评论 -
HDU - 2181 哈密顿绕行世界问题【dfs】
哈密顿绕行世界问题Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 8150 Accepted Submission(s): 4784Problem Description一个规则的实心十二面体,它的 20个顶点标出世界著名的2...原创 2019-01-29 18:08:17 · 115 阅读 · 0 评论 -
POJ - 2421 Constructing Roads【prim】
Constructing RoadsTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 28912 Accepted: 12823DescriptionThere are N villages, which are numbered from 1 to N, and you should build some roads ...原创 2019-01-31 21:35:52 · 93 阅读 · 0 评论 -
CodeForces - 509A. Maximum in Table【暴力模拟】
A. Maximum in Tabletime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAn n × n table a is defined as follows:The first row and the first column...原创 2019-03-03 09:19:37 · 165 阅读 · 0 评论 -
HDU - 1754 I Hate It【线段树】
I Hate ItTime Limit: 9000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 108841 Accepted Submission(s): 40748Problem Description很多学校流行一种比较的习惯。老师们很喜欢询问,从某...原创 2019-01-29 17:33:37 · 160 阅读 · 0 评论 -
[HDU-1241]Oil Deposits【dfs】
Oil DepositsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 47453 Accepted Submission(s): 27282Problem DescriptionThe GeoSurvComp geologi...原创 2019-01-29 14:32:43 · 176 阅读 · 0 评论 -
HDU - 1213 How Many Tables【并查集】
How Many TablesTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 49429 Accepted Submission(s): 24579Problem DescriptionToday is Ignatius’ b...原创 2019-01-30 10:52:00 · 82 阅读 · 0 评论 -
[POJ-2253] Frogger【dijkstrra】
FroggerTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 64734 Accepted: 20103DescriptionFreddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is ...原创 2019-02-01 11:48:15 · 144 阅读 · 0 评论 -
POJ - 3984迷宫问题【bfs】
迷宫问题Time Limit: 1000MS Memory Limit: 65536KTotal Submissions: 38988 Accepted: 21797Description定义一个二维数组: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...原创 2019-03-03 09:28:18 · 108 阅读 · 0 评论 -
HDU - 1576 A/B 【模的运算】
A/BTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 10214 Accepted Submission(s): 8165Problem Description要求(A/B)%9973,但由于A很大,我们只给出n(n=A%99...原创 2019-01-22 13:29:19 · 98 阅读 · 0 评论 -
HDU - 1264 Counting Squares【模拟\线段树】
Counting SquaresTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2640 Accepted Submission(s): 1285Problem DescriptionYour input is a serie...原创 2019-01-30 19:51:47 · 146 阅读 · 0 评论 -
10020 - Minimal coverage【最小覆盖、贪心问题】
Minimal coverageGiven several segments of line (int the X axis) with coordinates [Li, Ri]. You are to choose the minimalamount of them, such they would completely cover the segment [0, M].InputT...原创 2019-03-03 09:33:04 · 123 阅读 · 0 评论 -
HDU - 1505City Game【最大完全子矩阵】
City GameTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 8570 Accepted Submission(s): 3727Problem DescriptionBob is a strategy game progr...原创 2019-03-03 09:36:48 · 121 阅读 · 0 评论 -
UVA - 10382Watering Grass【最小覆盖】
n sprinklers are installed in a horizontal strip of grass l meters long and w meters wide. Each sprinkleris installed at the horizontal center line of the strip. For each sprinkler we are given its p...原创 2019-03-03 09:34:46 · 102 阅读 · 0 评论 -
HDU - 1087 Super Jumping! Jumping! Jumping!【最大连续线段值】
Super Jumping! Jumping! Jumping!Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 53920 Accepted Submission(s): 25040Problem DescriptionNow...原创 2019-03-03 09:38:15 · 87 阅读 · 0 评论 -
HDU - 2000 ASCII码排序【水题】
#include <iostream>using namespace std;int main(){ char a[3];//声明一个数组 while (cin >> a)//当输入该数组元素时循环 { char s; if (a[0] > a[原创 2018-12-07 17:39:15 · 619 阅读 · 0 评论 -
CodeForces - 822A I'm bored with life 【水题】
I’m bored with lifetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputHolidays have finished. Thanks to the help of the hacker Leha, Noora manage...原创 2018-12-23 14:47:55 · 672 阅读 · 0 评论 -
CodeForces - 439A. Devu, the Singer and Churu, the Joker【水题】
A. Devu, the Singer and Churu, the Jokertime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputDevu is a renowned classical singer. He is invited to ...原创 2018-12-23 14:20:09 · 178 阅读 · 0 评论 -
CodeForces - 118A String Task【水题】
#include <iostream>#include <string.h>using namespace std;int main(){ int i; char s[50]; while (cin >> s) { int l = strlen(s); for (i = 0; i < l; i++) {原创 2018-12-07 22:05:11 · 130 阅读 · 0 评论 -
HDU1000 A + B Problem【水题】
#include <iostream>using namespace std;int main(){ int a, b; while (cin >> a >> b) { cout <&l原创 2018-12-07 16:17:43 · 87 阅读 · 0 评论 -
HDU - 2101 A + B Problem Too【水题】
#include <iostream>using namespace std;int main(){ int a; int b; while (cin >> a >> b) { if ((a+b) % 86 == 0) { cout << "yes"原创 2018-12-07 19:54:32 · 109 阅读 · 0 评论 -
CodeForces - 492A Vanya and Cubes【水题】
Vanya and Cubestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVanya got n cubes. He decided to build a pyramid from them. Vanya wants to buil...原创 2018-12-23 14:41:28 · 209 阅读 · 0 评论 -
CodeForces - 266A Stones on the Table【水题】
#include <iostream>using namespace std;int main(){ int n, i; char s[50]; while(cin >> n) { cin >> s;原创 2018-12-07 16:19:21 · 162 阅读 · 0 评论 -
HDU - 2002 计算球体积【水题】
#include <iostream>#include <iomanip>#include <cmath>using namespace std;int main(){ const double pi = 3.1415927; double r, V; while (cin >> r) { V原创 2018-12-07 19:29:12 · 157 阅读 · 0 评论 -
CodeForces - 110A Y - Nearly Lucky Number【水题】
Y - Nearly Lucky NumberPetya loves lucky numbers. We all know that lucky numbers are the positive integers whose decimal representations contain only the lucky digits 4 and 7. For example, numbers 47...原创 2018-12-14 13:29:38 · 167 阅读 · 0 评论 -
POJ - 1426 Find The Multiple【bfs】
Find The MultipleTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 46594 Accepted: 19448 Special JudgeDescriptionGiven a positive integer n, write a program to find out a nonzero multip...原创 2019-03-03 09:40:00 · 106 阅读 · 0 评论 -
HDU - 1176 免费馅饼【dp动态规划】
免费馅饼Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 69904 Accepted Submission(s): 24547Problem Description都说天上不会掉馅饼,但有一天gameboy正走在回家的小径上,...原创 2019-03-03 09:42:38 · 101 阅读 · 0 评论 -
UVA - 424【高精度运算】
UVA - 424One of the first users of BIT’s new supercomputer was Chip Diller. He extended his exploration ofpowers of 3 to go from 0 to 333 and he explored taking various sums of those numbers.“This ...原创 2019-01-29 13:21:40 · 137 阅读 · 0 评论 -
HDU - 1016 Prime Ring Problem【dfs】
Prime Ring ProblemTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 70236 Accepted Submission(s): 30023Problem DescriptionA ring is compose...原创 2019-01-29 16:00:27 · 114 阅读 · 0 评论