自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

ZXM_ZhanX的博客

What is the difference between a man without a dream and a salted fish

  • 博客(30)
  • 收藏
  • 关注

原创 “字节跳动-文远知行杯”广东工业大学第十四届程序设计竞赛 hdu 6462 人类史上最大最好的希望事件 (斐波那契+前缀和)

题目地址 : http://acm.hdu.edu.cn/showproblem.php?pid=6462人类史上最大最好的希望事件Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 383 Accepted Submission(...

2019-03-17 10:20:09 228

原创 Codeforces 1084C The Fair Nut and Stringi

https://codeforces.com/problemset/problem/1084/CC. The Fair Nut and Stringtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe F...

2018-12-16 09:52:39 405

原创 CodeForces - 510B Fox And Two Dots 【DFS水题】

B. Fox And Two Dotstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputFox Ciel is playing a mobile puzzle game called "Two Dots". T...

2018-11-28 20:14:34 199

原创 2018hdu杭电多校第八场 hdu6397 Character Encoding(组合数+容斥定理/生成函数(母函数))

Character EncodingTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 922    Accepted Submission(s): 357Problem DescriptionIn computer scie...

2018-08-16 15:23:48 236

原创 2018hdu杭电多校第七场 hdu6396 Swordsman(暴力优先队列)

SwordsmanTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 1805    Accepted Submission(s): 519Problem DescriptionLawson is a magic swords...

2018-08-14 21:11:13 219

原创 2018hdu杭电多校第七场 hdu6386 Age of Moyu(bfs+优先队列)

Age of MoyuTime Limit: 5000/2500 MS (Java/Others)    Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 2045    Accepted Submission(s): 632Problem DescriptionMr.Quin love fishes so...

2018-08-14 15:10:40 280 1

原创 2018hdu杭电多校第五场 hdu6354 Everything Has Changed(几何)

Everything Has ChangedTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 725    Accepted Submission(s): 418Special Judge Problem Descriptio...

2018-08-07 15:18:28 319

原创 2018hdu杭电多校第五场 hdu6351 Beautiful Now(暴力全排列)

Beautiful NowTime Limit: 5000/2500 MS (Java/Others)    Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 1677    Accepted Submission(s): 621Problem DescriptionAnton has a positive...

2018-08-07 14:58:58 391

原创 2018hdu杭电多校第四场 hdu6333 Problem B. Harvest of Apples (莫队 + 组合数 + 逆元)

Problem B. Harvest of ApplesTime Limit: 4000/2000 MS (Java/Others)    Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 1595    Accepted Submission(s): 603Problem DescriptionThere...

2018-08-02 16:26:03 280

原创 2018hdu杭电多校第三场 hdu6319 Problem A. Ascending Rating(单调队列)

Problem A. Ascending RatingTime Limit: 10000/5000 MS (Java/Others)    Memory Limit: 524288/524288 K (Java/Others)Total Submission(s): 2482    Accepted Submission(s): 785Problem DescriptionBefor...

2018-07-31 11:57:31 247

原创 线段树模板(维护最大值、最小值、和)【单点更新、单点查询、区间更新、区间查询】

#include <iostream>#include <cstdio>#include <algorithm>using namespace std;typedef long long ll;const int N = 1e5 + 10;#define lson rt << 1 // == rt * 2 左儿子#def...

2018-07-26 22:57:59 2316 2

原创 2018hdu杭电多校第一场 hdu6301 Distinct Values (贪心+set)

Distinct ValuesTime Limit: 4000/2000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3304    Accepted Submission(s): 1073Problem DescriptionChiaki has an array...

2018-07-25 11:33:29 223

原创 2018hdu杭电多校第一场 hdu6299 Balanced Sequence(贪心)

Balanced SequenceTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3780    Accepted Submission(s): 991Problem DescriptionChiaki has n strin...

2018-07-25 10:59:05 591

原创 [补]CodeForces 165B Burning Midnight Oil

B. Burning Midnight Oiltime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOne day a highly important task was commissioned to Vasya — writing a progr...

2018-05-14 16:03:16 286

原创 【二分】[ACM][2018北理校赛]想要拥有更多的快乐【补】

Description自从糖从哈尔滨回来之后就迷上了撸串,串串中辣辣的感觉,香香的口味都让他不可自拔,但是吃多了也不是一件好事。于是他每隔一段时间给自己一个吃串串的假期,假期长度为n天,并且这n天内吃的串串总数不能超过m串,抖a曾经说过,今天吃的串串不能少于昨天的一半,否则就无法保持如今完美的身材(只能整串整串吃)。规定一个快乐值:happy=x(x为当天吃的串串数)求糖第一天能得到的快乐值最大是...

2018-04-25 19:58:32 492

原创 [BFS] hdu2612 [ACM][2018北理校赛]朋友,面基吗 【补】

Description终于到了北京了,这是糖糖最后一次参加蓝桥杯,由于上一次鸽了LZH,这一次决定和lzh找一个肯德基面基,但是长途劳累的他们并不想走很远的路,于是他们就想找一个总路程最小的肯德基见面。现在给你一个北京的地图,抽象成一个n*m的矩阵,他们只能向相邻的点移动并花费11分钟。求他们见面需要的最短总时间Input有多组数据每一组数据第一行是两个整数n,m,(2<=n,m<=2...

2018-04-24 13:07:57 184

原创 [ACM][2018北理校赛]签到题 【补】

Description作为签到题当然是很水的啦。你只要输出n!可以被多少个2整除就可以了。Input多组数据,每组数据输入一个n(1 <= n <= 10^18)Output每组数据输出一行,输出n!可以被多少个2整除。Sample Input 1 24Sample Output 113题意:给你个数 求阶乘能被多少个2整除思路:模拟就好 记住数很大 用long longAC代码:...

2018-04-23 16:15:11 953

原创 [2018-4-20]BNUZ套题比赛div2 CodeForces 548B Mike and Fun【补】

B. Mike and Funtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputMike and some bears are playing a game just for fun. Mike is the judge. All bears e...

2018-04-22 20:05:53 134

原创 [2018-4-20]BNUZ套题比赛div2 CodeForces 548A Mike and Fax【补】

A. Mike and Faxtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputWhile Mike was walking in the subway, all the stuff in his back-bag dropped on the g...

2018-04-22 19:30:20 250

原创 BNUZ-18-IT节 K题 骚年,你想见识真正的AK吗

题目链接:点击打开链接骚年,汝可知”AK”之力乎。所谓AK就是all kill的意思,也就是在比赛结束前就将所有题目全都解出,而在茫茫人海的ACM赛场上总有队伍寻找着AK的的方法,但这往往都是不可能的。而二十二进制,是第二个恰好能表达AK的进制。这个进制将带领你走向AK。在走向AK的道路上,它给出了一个二十二进制的数字a,希望你能找到一个大于等于a的最小的二十二进制数b,它能且能被7整除,因为7是...

2018-04-17 18:22:48 257

原创 2018-BNUZ-ACM-GDCPC选拔赛 CodeForces 812B Sagheer, the Hausmeister【补】

B. Sagheer, the Hausmeistertime limit per test 1 secondmemory limit per test 256 megabytesinput standard inputoutput standard outputSome people leave the lights at their workplaces on when they leave ...

2018-04-16 22:28:43 189

原创 2018-BNUZ-ACM-GDCPC选拔赛 CodeForces 812C Sagheer and Nubian Market【补】

C. Sagheer and Nubian Markettime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOn his trip to Luxor and Aswan, Sagheer went to a Nubian market to buy...

2018-04-16 16:43:16 191

原创 2018-BNUZ-ACM-GDCPC选拔赛 CodeForces 766A Mahmoud and Longest Uncommon Subsequence【补】

A. Mahmoud and Longest Uncommon Subsequencetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputWhile Mahmoud and Ehab were practicing for IOI, they fo...

2018-04-16 12:45:40 138

原创 2018-BNUZ-ACM-GDCPC选拔赛 CodeForces 766B Mahmoud and a Triangle【补】

B. Mahmoud and a Triangletime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputMahmoud has n line segments, the i-th of them has length ai. Ehab challen...

2018-04-16 12:31:56 171

原创 [2018-4-8]BNUZ套题比赛div2 CodeForces 934A A Compatible Pair【补】

A. A Compatible Pairtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputNian is a monster which lives deep in the oceans. Once a year, it shows up on t...

2018-04-09 20:30:10 267

原创 [2018-4-8]BNUZ套题比赛div2 CodeForces 934B A Prosperous Lot【补】

B. A Prosperous Lottime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputApart from Nian, there is a daemon named Sui, which terrifies children and cause...

2018-04-09 17:17:21 151

原创 [2018-4-8]BNUZ套题比赛div2 CodeForces 960B Minimize the error【补】

B. Minimize the errortime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given two arrays A and B, each of size n. The error, E, between these ...

2018-04-09 16:37:51 166

原创 [2018-4-8]BNUZ套题比赛div2 CodeForces 960A Check the string【补】

A. Check the stringtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA has a string consisting of some number of lowercase English letters 'a'. He gi...

2018-04-09 16:03:25 253

原创 [2018-3-16]BNUZ套题比赛div2 CodeForces 869B The Eternal Immortality【补】

B. The Eternal Immortalitytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputEven if the world is full of counterfeits, I still regard it as wonderful...

2018-03-21 16:46:20 176

原创 [2018-3-16]BNUZ套题比赛div2 CodeForces 892B Wrath【补】

B. Wrathtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputHands that shed innocent blood!There are n guilty people in a line, the i-th of them holds...

2018-03-21 16:22:52 198

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除